home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Technical Documentation / Mac Tech Notes (DocViewer) / TN-Overview < prev    next >
MacBinary  |  1993-01-05  |  622.0 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue Dec 22 11:33:16 1992, modified Tue Jan 5 10:02:45 1993, creator 'HLX2', type 'ONLN', 621269 bytes "TN-Overview" , at 0x97b55 15439 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 54 4e 2d 4f 76 65 | 72 76 69 65 77 00 00 00 |..TN-Ove|rview...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 09 7a d5 00 | 00 3c 4f a7 5c f3 cc a7 |.....z..|.<O.\...|
|00000060| 6f 53 95 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |oS......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 6e f1 00 00 |........|....n...|
|00000080| 44 6f 6e d5 74 20 44 65 | 70 65 6e 64 20 6f 6e 20 |Don.t De|pend on |
|00000090| 52 65 67 69 73 74 65 72 | 20 41 35 20 57 69 74 68 |Register| A5 With|
|000000a0| 69 6e 20 54 72 61 70 20 | 50 61 74 63 68 65 73 0d |in Trap |Patches.|
|000000b0| 4f 76 65 72 76 69 65 77 | 09 4d 2e 4f 56 2e 41 35 |Overview|.M.OV.A5|
|000000c0| 54 72 61 70 50 61 74 63 | 68 69 6e 67 0d 52 65 76 |TrapPatc|hing.Rev|
|000000d0| 69 73 65 64 20 62 79 3a | 09 09 4d 61 72 63 68 20 |ised by:|..March |
|000000e0| 31 39 38 38 0d 57 72 69 | 74 74 65 6e 20 62 79 3a |1988.Wri|tten by:|
|000000f0| 09 42 72 79 61 6e 20 53 | 74 65 61 72 6e 73 09 4a |.Bryan S|tearns.J|
|00000100| 75 6e 65 20 31 39 38 36 | 0d 46 75 74 75 72 65 20 |une 1986|.Future |
|00000110| 73 6f 66 74 77 61 72 65 | 20 6d 61 79 20 61 6c 6c |software| may all|
|00000120| 6f 77 20 64 65 73 6b 20 | 61 63 63 65 73 73 6f 72 |ow desk |accessor|
|00000130| 69 65 73 20 74 6f 20 68 | 61 76 65 20 74 68 65 69 |ies to h|ave thei|
|00000140| 72 20 6f 77 6e 20 67 6c | 6f 62 61 6c 73 20 62 79 |r own gl|obals by|
|00000150| 20 63 68 61 6e 67 69 6e | 67 20 72 65 67 69 73 74 | changin|g regist|
|00000160| 65 72 20 41 35 20 77 68 | 65 6e 20 74 68 65 20 61 |er A5 wh|en the a|
|00000170| 63 63 65 73 73 6f 72 79 | 20 69 73 20 65 6e 74 65 |ccessory| is ente|
|00000180| 72 65 64 20 61 6e 64 20 | 65 78 69 74 65 64 2e 20 |red and |exited. |
|00000190| 54 68 69 73 20 63 61 6e | 20 63 61 75 73 65 20 70 |This can| cause p|
|000001a0| 72 6f 62 6c 65 6d 73 20 | 66 6f 72 20 61 70 70 6c |roblems |for appl|
|000001b0| 69 63 61 74 69 6f 6e 73 | 20 74 68 61 74 20 70 61 |ications| that pa|
|000001c0| 74 63 68 20 74 72 61 70 | 73 20 77 69 74 68 6f 75 |tch trap|s withou|
|000001d0| 74 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 63 65 72 74 |t follow|ing cert|
|000001e0| 61 69 6e 20 72 75 6c 65 | 73 2e 0d 49 66 20 79 6f |ain rule|s..If yo|
|000001f0| 75 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 70 |ur appli|cation p|
|00000200| 61 74 63 68 65 73 20 61 | 6e 79 20 74 72 61 70 73 |atches a|ny traps|
|00000210| 2c 20 69 74 d5 73 20 69 | 6d 70 6f 72 74 61 6e 74 |, it.s i|mportant|
|00000220| 20 74 68 61 74 20 74 68 | 65 20 70 61 74 63 68 65 | that th|e patche|
|00000230| 73 20 6e 6f 74 20 64 65 | 70 65 6e 64 20 6f 6e 20 |s not de|pend on |
|00000240| 72 65 67 69 73 74 65 72 | 20 41 35 2e 20 54 68 69 |register| A5. Thi|
|00000250| 73 20 69 73 20 62 65 63 | 61 75 73 65 20 79 6f 75 |s is bec|ause you|
|00000260| 20 6d 61 79 20 68 61 76 | 65 20 69 6e 74 65 72 63 | may hav|e interc|
|00000270| 65 70 74 65 64 20 61 20 | 74 72 61 70 20 75 73 65 |epted a |trap use|
|00000280| 64 20 62 79 20 61 20 64 | 65 73 6b 20 61 63 63 65 |d by a d|esk acce|
|00000290| 73 73 6f 72 79 2e 0d 49 | 66 20 79 6f 75 20 6e 65 |ssory..I|f you ne|
|000002a0| 65 64 20 61 63 63 65 73 | 73 20 74 6f 20 79 6f 75 |ed acces|s to you|
|000002b0| 72 20 67 6c 6f 62 61 6c | 73 20 77 69 74 68 69 6e |r global|s within|
|000002c0| 20 79 6f 75 72 20 70 61 | 74 63 68 2c 20 79 6f 75 | your pa|tch, you|
|000002d0| 20 63 61 6e 20 73 61 76 | 65 20 41 35 20 28 6f 6e | can sav|e A5 (on|
|000002e0| 20 74 68 65 20 73 74 61 | 63 6b 2c 20 70 65 72 68 | the sta|ck, perh|
|000002f0| 61 70 73 29 2c 20 6c 6f | 61 64 20 41 35 20 66 72 |aps), lo|ad A5 fr|
|00000300| 6f 6d 20 74 68 65 20 6c | 6f 77 2d 6d 65 6d 6f 72 |om the l|ow-memor|
|00000310| 79 20 67 6c 6f 62 61 6c | 20 43 75 72 72 65 6e 74 |y global| Current|
|00000320| 41 35 20 28 74 68 69 73 | 20 69 73 20 67 75 61 72 |A5 (this| is guar|
|00000330| 61 6e 74 65 65 64 20 74 | 6f 20 62 65 20 63 6f 72 |anteed t|o be cor|
|00000340| 72 65 63 74 20 66 6f 72 | 20 79 6f 75 72 20 61 70 |rect for| your ap|
|00000350| 70 6c 69 63 61 74 69 6f | 6e 29 2c 20 64 6f 20 77 |plicatio|n), do w|
|00000360| 68 61 74 65 76 65 72 20 | 79 6f 75 20 68 61 76 65 |hatever |you have|
|00000370| 20 74 6f 20 64 6f 20 77 | 69 74 68 69 6e 20 79 6f | to do w|ithin yo|
|00000380| 75 72 20 70 61 74 63 68 | 2c 20 74 68 65 6e 20 72 |ur patch|, then r|
|00000390| 65 73 74 6f 72 65 20 41 | 35 20 6f 6e 20 74 68 65 |estore A|5 on the|
|000003a0| 20 77 61 79 20 6f 75 74 | 2e 20 4e 6f 74 65 20 74 | way out|. Note t|
|000003b0| 68 61 74 20 69 66 20 79 | 6f 75 20 6d 61 6b 65 20 |hat if y|ou make |
|000003c0| 61 6e 79 20 74 72 61 70 | 73 20 77 69 74 68 69 6e |any trap|s within|
|000003d0| 20 79 6f 75 72 20 70 61 | 74 63 68 20 28 6f 72 20 | your pa|tch (or |
|000003e0| 63 61 6c 6c 20 74 68 65 | 20 d2 72 65 61 6c d3 20 |call the| .real. |
|000003f0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 74 68 65 20 72 |version |of the r|
|00000400| 6f 75 74 69 6e 65 20 79 | 6f 75 20 70 61 74 63 68 |outine y|ou patch|
|00000410| 65 64 29 2c 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |ed), you| should |
|00000420| 72 65 73 74 6f 72 65 20 | 74 68 65 20 63 61 6c 6c |restore |the call|
|00000430| 65 72 d5 73 20 41 35 20 | 62 65 66 6f 72 65 20 64 |er.s A5 |before d|
|00000440| 6f 69 6e 67 20 73 6f 2e | 0d 54 68 65 72 65 20 61 |oing so.|.There a|
|00000450| 72 65 20 73 65 76 65 72 | 61 6c 20 77 61 79 73 20 |re sever|al ways |
|00000460| 6f 66 20 64 65 70 65 6e | 64 69 6e 67 20 6f 6e 20 |of depen|ding on |
|00000470| 41 35 20 77 69 74 68 69 | 6e 20 61 20 70 61 74 63 |A5 withi|n a patc|
|00000480| 68 20 74 68 61 74 20 79 | 6f 75 20 73 68 6f 75 6c |h that y|ou shoul|
|00000490| 64 20 77 61 74 63 68 20 | 6f 75 74 20 66 6f 72 3a |d watch |out for:|
|000004a0| 0d a5 09 41 72 65 20 79 | 6f 75 20 6d 61 6b 69 6e |...Are y|ou makin|
|000004b0| 67 20 61 6e 79 20 72 65 | 66 65 72 65 6e 63 65 73 |g any re|ferences|
|000004c0| 20 74 6f 20 79 6f 75 72 | 20 67 6c 6f 62 61 6c 20 | to your| global |
|000004d0| 76 61 72 69 61 62 6c 65 | 73 2c 20 6f 72 20 74 68 |variable|s, or th|
|000004e0| 6f 73 65 20 6f 66 20 61 | 6e 79 20 75 6e 69 74 73 |ose of a|ny units|
|000004f0| 20 74 68 61 74 20 79 6f | 75 d5 72 65 20 20 75 73 | that yo|u.re us|
|00000500| 69 6e 67 2c 20 73 75 63 | 68 20 61 73 20 74 68 65 |ing, suc|h as the|
|00000510| 50 6f 72 74 20 66 72 6f | 6d 20 51 75 69 63 6b 44 |Port fro|m QuickD|
|00000520| 72 61 77 3f 20 54 68 65 | 73 65 20 61 72 65 20 61 |raw? The|se are a|
|00000530| 63 63 65 73 73 65 64 20 | 77 69 74 68 20 41 35 2d |ccessed |with A5-|
|00000540| 72 65 6c 61 74 69 76 65 | 20 72 65 66 65 72 65 6e |relative| referen|
|00000550| 63 65 73 20 77 69 74 68 | 20 6e 65 67 61 74 69 76 |ces with| negativ|
|00000560| 65 20 6f 66 66 73 65 74 | 73 2e 0d a5 09 41 72 65 |e offset|s....Are|
|00000570| 20 79 6f 75 20 6d 61 6b | 69 6e 67 20 61 6e 79 20 | you mak|ing any |
|00000580| 69 6e 74 65 72 2d 73 65 | 67 6d 65 6e 74 20 73 75 |inter-se|gment su|
|00000590| 62 72 6f 75 74 69 6e 65 | 20 63 61 6c 6c 73 3f 20 |broutine| calls? |
|000005a0| 54 68 65 73 65 20 61 72 | 65 20 61 63 63 65 73 73 |These ar|e access|
|000005b0| 65 64 20 77 69 74 68 20 | 41 35 2d 72 65 6c 61 74 |ed with |A5-relat|
|000005c0| 69 76 65 20 20 72 65 66 | 65 72 65 6e 63 65 73 20 |ive ref|erences |
|000005d0| 77 69 74 68 20 70 6f 73 | 69 74 69 76 65 20 6f 66 |with pos|itive of|
|000005e0| 66 73 65 74 73 2e 0d a5 | 09 41 72 65 20 79 6f 75 |fsets...|.Are you|
|000005f0| 20 75 73 69 6e 67 20 61 | 6e 79 20 73 79 73 74 65 | using a|ny syste|
|00000600| 6d 20 63 61 6c 6c 73 20 | 28 65 69 74 68 65 72 20 |m calls |(either |
|00000610| 74 72 61 70 73 20 6f 72 | 20 d2 67 6c 75 65 d3 20 |traps or| .glue. |
|00000620| 72 6f 75 74 69 6e 65 73 | 29 20 77 68 69 63 68 20 |routines|) which |
|00000630| 77 69 6c 6c 20 64 65 70 | 65 6e 64 20 6f 6e 20 41 |will dep|end on A|
|00000640| 35 20 20 64 75 72 69 6e | 67 20 74 68 65 69 72 20 |5 durin|g their |
|00000650| 65 78 65 63 75 74 69 6f | 6e 3f 20 49 6e 20 74 68 |executio|n? In th|
|00000660| 69 73 20 63 61 73 65 2c | 20 79 6f 75 20 6e 65 65 |is case,| you nee|
|00000670| 64 20 74 6f 20 62 65 20 | 73 75 72 65 20 74 68 61 |d to be |sure tha|
|00000680| 74 20 79 6f 75 20 72 65 | 73 74 6f 72 65 20 74 68 |t you re|store th|
|00000690| 65 20 63 61 6c 6c 65 72 | d5 73 20 41 35 20 20 62 |e caller|.s A5 b|
|000006a0| 65 66 6f 72 65 20 65 78 | 65 63 75 74 69 6e 67 20 |efore ex|ecuting |
|000006b0| 74 68 65 20 63 61 6c 6c | 2e 0d 54 6f 20 62 65 20 |the call|..To be |
|000006c0| 73 61 66 65 73 74 2c 20 | 70 61 74 63 68 65 64 20 |safest, |patched |
|000006d0| 74 72 61 70 73 20 73 68 | 6f 75 6c 64 20 66 6f 6c |traps sh|ould fol|
|000006e0| 6c 6f 77 20 74 68 65 20 | 73 61 6d 65 20 72 75 6c |low the |same rul|
|000006f0| 65 73 20 61 73 20 69 6e | 74 65 72 72 75 70 74 20 |es as in|terrupt |
|00000700| 68 61 6e 64 6c 65 72 73 | 2e 0d 4e 6f 74 65 3a 09 |handlers|..Note:.|
|00000710| 49 6e 20 67 65 6e 65 72 | 61 6c 2c 20 61 70 70 6c |In gener|al, appl|
|00000720| 69 63 61 74 69 6f 6e 73 | 20 73 68 6f 75 6c 64 20 |ications| should |
|00000730| 6e 6f 74 20 68 61 76 65 | 20 74 6f 20 70 61 74 63 |not have| to patc|
|00000740| 68 20 61 6e 79 20 74 72 | 61 70 73 2c 20 61 6e 64 |h any tr|aps, and|
|00000750| 20 72 69 73 6b 20 63 6f | 6d 70 61 74 69 62 69 6c | risk co|mpatibil|
|00000760| 69 74 79 20 70 72 6f 62 | 6c 65 6d 73 20 69 66 20 |ity prob|lems if |
|00000770| 74 68 65 79 20 64 6f 21 | 20 49 66 20 79 6f 75 d5 |they do!| If you.|
|00000780| 64 20 6c 69 6b 65 20 68 | 65 6c 70 20 69 6e 20 72 |d like h|elp in r|
|00000790| 65 6d 6f 76 69 6e 67 20 | 79 6f 75 72 20 64 65 70 |emoving |your dep|
|000007a0| 65 6e 64 65 6e 63 65 20 | 6f 6e 20 70 61 74 63 68 |endence |on patch|
|000007b0| 69 6e 67 2c 20 70 6c 65 | 61 73 65 20 63 6f 6e 74 |ing, ple|ase cont|
|000007c0| 61 63 74 20 4d 61 63 69 | 6e 74 6f 73 68 20 44 65 |act Maci|ntosh De|
|000007d0| 76 65 6c 6f 70 65 72 20 | 54 65 63 68 6e 69 63 61 |veloper |Technica|
|000007e0| 6c 20 53 75 70 70 6f 72 | 74 2e 0d 46 75 72 74 68 |l Suppor|t..Furth|
|000007f0| 65 72 20 52 65 66 65 72 | 65 6e 63 65 3a 0d a5 09 |er Refer|ence:...|
|00000800| 54 68 65 20 4f 70 65 72 | 61 74 69 6e 67 20 53 79 |The Oper|ating Sy|
|00000810| 73 74 65 6d 20 55 74 69 | 6c 69 74 69 65 73 0d ca |stem Uti|lities..|
|00000820| 0d 43 68 6f 6f 73 65 72 | 20 45 6e 68 61 6e 63 65 |.Chooser| Enhance|
|00000830| 6d 65 6e 74 73 0d 4f 76 | 65 72 76 69 65 77 09 4d |ments.Ov|erview.M|
|00000840| 2e 4f 56 2e 43 68 6f 6f | 73 65 72 0d 57 72 69 74 |.OV.Choo|ser.Writ|
|00000850| 74 65 6e 20 62 79 3a 09 | 43 68 72 69 73 20 4b 6e |ten by:.|Chris Kn|
|00000860| 65 70 70 65 72 09 41 75 | 67 75 73 74 20 31 39 38 |epper.Au|gust 198|
|00000870| 38 0d 42 65 67 69 6e 6e | 69 6e 67 20 77 69 74 68 |8.Beginn|ing with|
|00000880| 20 76 65 72 73 69 6f 6e | 20 33 2e 32 2c 20 74 68 | version| 3.2, th|
|00000890| 65 20 43 68 6f 6f 73 65 | 72 20 68 61 73 20 62 65 |e Choose|r has be|
|000008a0| 65 6e 20 65 6e 68 61 6e | 63 65 64 20 74 6f 20 70 |en enhan|ced to p|
|000008b0| 72 6f 76 69 64 65 20 73 | 75 70 70 6f 72 74 20 66 |rovide s|upport f|
|000008c0| 6f 72 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 63 6f |or addit|ional co|
|000008d0| 6e 74 72 6f 6c 73 2e 0d | 41 73 20 73 74 61 74 65 |ntrols..|As state|
|000008e0| 64 20 69 6e 20 49 6e 73 | 69 64 65 20 4d 61 63 69 |d in Ins|ide Maci|
|000008f0| 6e 74 6f 73 68 20 49 56 | 2d 32 31 37 2c 20 74 68 |ntosh IV|-217, th|
|00000900| 65 20 43 68 6f 6f 73 65 | 72 20 63 6f 6d 6d 75 6e |e Choose|r commun|
|00000910| 69 63 61 74 65 73 20 77 | 69 74 68 20 64 65 76 69 |icates w|ith devi|
|00000920| 63 65 20 70 61 63 6b 61 | 67 65 73 20 61 73 20 69 |ce packa|ges as i|
|00000930| 66 20 74 68 65 79 20 77 | 65 72 65 20 74 68 65 20 |f they w|ere the |
|00000940| 66 6f 6c 6c 6f 77 69 6e | 67 20 66 75 6e 63 74 69 |followin|g functi|
|00000950| 6f 6e 3a 0d 09 46 55 4e | 43 54 49 4f 4e 20 44 65 |on:..FUN|CTION De|
|00000960| 76 69 63 65 20 28 6d 65 | 73 73 61 67 65 2c 20 63 |vice (me|ssage, c|
|00000970| 61 6c 6c 65 72 3a 20 49 | 4e 54 45 47 45 52 3b 0d |aller: I|NTEGER;.|
|00000980| 09 09 6f 62 6a 4e 61 6d | 65 2c 20 7a 6f 6e 65 4e |..objNam|e, zoneN|
|00000990| 61 6d 65 3a 20 53 74 72 | 69 6e 67 50 74 72 3b 0d |ame: Str|ingPtr;.|
|000009a0| 09 09 70 31 2c 20 70 32 | 3a 20 4c 4f 4e 47 49 4e |..p1, p2|: LONGIN|
|000009b0| 54 29 3a 20 4f 53 45 72 | 72 3b 0d 54 68 69 73 20 |T): OSEr|r;.This |
|000009c0| 66 75 6e 63 74 69 6f 6e | 20 69 73 20 63 6f 6e 74 |function| is cont|
|000009d0| 61 69 6e 65 64 20 69 6e | 20 74 68 65 20 64 65 76 |ained in| the dev|
|000009e0| 69 63 65 20 70 61 63 6b | 61 67 65 d5 73 20 27 50 |ice pack|age.s 'P|
|000009f0| 41 43 4b 27 20 2d 34 30 | 39 36 20 72 65 73 6f 75 |ACK' -40|96 resou|
|00000a00| 72 63 65 2e 20 49 66 20 | 62 69 74 20 31 37 20 69 |rce. If |bit 17 i|
|00000a10| 6e 20 74 68 65 20 66 6c | 61 67 73 20 66 69 65 6c |n the fl|ags fiel|
|00000a20| 64 20 6f 66 20 74 68 69 | 73 20 27 50 41 43 4b 27 |d of thi|s 'PACK'|
|00000a30| 20 69 73 20 73 65 74 2c | 20 74 68 65 20 44 65 76 | is set,| the Dev|
|00000a40| 69 63 65 20 66 75 6e 63 | 74 69 6f 6e 20 77 69 6c |ice func|tion wil|
|00000a50| 6c 20 72 65 63 65 69 76 | 65 20 61 6e 20 69 6e 69 |l receiv|e an ini|
|00000a60| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 20 6d 65 73 73 |tializat|ion mess|
|00000a70| 61 67 65 20 77 68 65 6e | 20 74 68 65 20 75 73 65 |age when| the use|
|00000a80| 72 20 73 65 6c 65 63 74 | 73 20 74 68 61 74 20 64 |r select|s that d|
|00000a90| 65 76 69 63 65 20 72 65 | 73 6f 75 72 63 65 20 66 |evice re|source f|
|00000aa0| 69 6c 65 20 66 72 6f 6d | 20 74 68 65 20 43 68 6f |ile from| the Cho|
|00000ab0| 6f 73 65 72 d5 73 20 77 | 69 6e 64 6f 77 20 d0 20 |oser.s w|indow . |
|00000ac0| 20 44 65 76 69 63 65 20 | 77 69 6c 6c 20 62 65 20 | Device |will be |
|00000ad0| 63 61 6c 6c 65 64 20 77 | 69 74 68 20 6d 65 73 73 |called w|ith mess|
|00000ae0| 61 67 65 20 3d 20 69 6e | 69 74 4d 73 67 2e 20 54 |age = in|itMsg. T|
|00000af0| 68 69 73 20 69 73 20 74 | 68 65 20 66 69 72 73 74 |his is t|he first|
|00000b00| 20 6d 65 73 73 61 67 65 | 20 74 68 61 74 20 64 65 | message| that de|
|00000b10| 76 69 63 65 20 70 61 63 | 6b 61 67 65 73 20 72 65 |vice pac|kages re|
|00000b20| 63 65 69 76 65 20 61 6e | 64 20 6d 61 79 20 62 65 |ceive an|d may be|
|00000b30| 20 75 73 65 64 20 74 6f | 20 73 65 74 20 75 70 20 | used to| set up |
|00000b40| 64 65 66 61 75 6c 74 20 | 63 6f 6e 66 69 67 75 72 |default |configur|
|00000b50| 61 74 69 6f 6e 73 2e 20 | 54 68 65 20 4d 50 57 20 |ations. |The MPW |
|00000b60| 61 73 73 65 6d 62 6c 65 | 72 20 69 6e 74 65 72 66 |assemble|r interf|
|00000b70| 61 63 65 20 66 6f 72 20 | 74 68 69 73 20 6e 65 77 |ace for |this new|
|00000b80| 20 6d 65 73 73 61 67 65 | 20 69 73 3a 0d 09 69 6e | message| is:..in|
|00000b90| 69 74 4d 73 67 20 45 51 | 55 20 31 31 0d 57 68 65 |itMsg EQ|U 11.Whe|
|00000ba0| 6e 20 74 68 65 20 44 65 | 76 69 63 65 20 66 75 6e |n the De|vice fun|
|00000bb0| 63 74 69 6f 6e 20 72 65 | 63 65 69 76 65 73 20 69 |ction re|ceives i|
|00000bc0| 6e 69 74 4d 73 67 2c 20 | 74 68 65 20 6f 62 6a 4e |nitMsg, |the objN|
|00000bd0| 61 6d 65 20 70 61 72 61 | 6d 65 74 65 72 20 63 6f |ame para|meter co|
|00000be0| 6e 74 61 69 6e 73 20 61 | 20 70 6f 69 6e 74 65 72 |ntains a| pointer|
|00000bf0| 20 74 6f 20 61 6e 20 61 | 72 72 61 79 20 6f 66 20 | to an a|rray of |
|00000c00| 43 6f 6e 74 72 6f 6c 48 | 61 6e 64 6c 65 73 2e 20 |ControlH|andles. |
|00000c10| 46 6f 72 20 74 68 69 73 | 20 6d 65 73 73 61 67 65 |For this| message|
|00000c20| 20 28 61 6e 64 20 66 6f | 72 20 74 68 65 20 62 75 | (and fo|r the bu|
|00000c30| 74 74 6f 6e 4d 73 67 20 | 64 65 73 63 72 69 62 65 |ttonMsg |describe|
|00000c40| 64 20 62 65 6c 6f 77 29 | 20 74 68 65 20 6f 62 6a |d below)| the obj|
|00000c50| 4e 61 6d 65 20 70 61 72 | 61 6d 65 74 65 72 20 69 |Name par|ameter i|
|00000c60| 73 20 61 20 70 6f 69 6e | 74 65 72 20 74 6f 20 61 |s a poin|ter to a|
|00000c70| 20 73 74 72 75 63 74 75 | 72 65 20 61 73 20 66 6f | structu|re as fo|
|00000c80| 6c 6c 6f 77 73 3a 20 20 | 69 74 20 62 65 67 69 6e |llows: |it begin|
|00000c90| 73 20 77 69 74 68 20 61 | 20 73 69 7a 65 20 77 6f |s with a| size wo|
|00000ca0| 72 64 20 61 6e 64 20 69 | 73 20 66 6f 6c 6c 6f 77 |rd and i|s follow|
|00000cb0| 65 64 20 62 79 20 61 74 | 20 6c 65 61 73 74 20 34 |ed by at| least 4|
|00000cc0| 20 43 6f 6e 74 72 6f 6c | 48 61 6e 64 6c 65 73 2e | Control|Handles.|
|00000cd0| 20 54 68 65 20 73 69 7a | 65 20 69 73 20 61 74 20 | The siz|e is at |
|00000ce0| 6c 65 61 73 74 20 31 38 | 20 62 79 74 65 73 20 28 |least 18| bytes (|
|00000cf0| 32 20 62 79 74 65 73 20 | 66 6f 72 20 74 68 65 20 |2 bytes |for the |
|00000d00| 73 69 7a 65 20 77 6f 72 | 64 20 61 6e 64 20 34 20 |size wor|d and 4 |
|00000d10| 62 79 74 65 73 20 65 61 | 63 68 20 66 6f 72 20 74 |bytes ea|ch for t|
|00000d20| 68 65 20 68 61 6e 64 6c | 65 73 29 2e 20 4d 6f 72 |he handl|es). Mor|
|00000d30| 65 20 68 61 6e 64 6c 65 | 73 20 6d 61 79 20 62 65 |e handle|s may be|
|00000d40| 20 61 64 64 65 64 20 69 | 6e 20 74 68 65 20 66 75 | added i|n the fu|
|00000d50| 74 75 72 65 2e 20 54 68 | 65 20 66 6f 75 72 20 43 |ture. Th|e four C|
|00000d60| 6f 6e 74 72 6f 6c 48 61 | 6e 64 6c 65 73 20 74 68 |ontrolHa|ndles th|
|00000d70| 61 74 20 68 61 76 65 20 | 62 65 65 6e 20 64 65 66 |at have |been def|
|00000d80| 69 6e 65 64 20 74 68 75 | 73 20 66 61 72 20 61 72 |ined thu|s far ar|
|00000d90| 65 20 74 68 65 20 6c 65 | 66 74 20 61 6e 64 20 72 |e the le|ft and r|
|00000da0| 69 67 68 74 20 62 75 74 | 74 6f 6e 73 20 61 6e 64 |ight but|tons and|
|00000db0| 20 74 68 65 20 d2 6f 6e | d3 20 61 6e 64 20 d2 6f | the .on|. and .o|
|00000dc0| 66 66 d3 20 72 61 64 69 | 6f 20 62 75 74 74 6f 6e |ff. radi|o button|
|00000dd0| 73 2e 20 54 68 65 69 72 | 20 68 61 6e 64 6c 65 73 |s. Their| handles|
|00000de0| 20 61 70 70 65 61 72 20 | 69 6e 20 74 68 69 73 20 | appear |in this |
|00000df0| 6f 72 64 65 72 3a 0d 73 | 69 7a 65 20 77 6f 72 64 |order:.s|ize word|
|00000e00| 0d 6c 65 66 74 20 43 6f | 6e 74 72 6f 6c 48 61 6e |.left Co|ntrolHan|
|00000e10| 64 6c 65 0d 72 69 67 68 | 74 20 43 6f 6e 74 72 6f |dle.righ|t Contro|
|00000e20| 6c 48 61 6e 64 6c 65 0d | 6f 6e 20 43 6f 6e 74 72 |lHandle.|on Contr|
|00000e30| 6f 6c 48 61 6e 64 6c 65 | 0d 6f 66 66 20 43 6f 6e |olHandle|.off Con|
|00000e40| 74 72 6f 6c 48 61 6e 64 | 6c 65 0d c9 3f 0d 54 68 |trolHand|le..?.Th|
|00000e50| 65 20 46 6c 61 67 73 20 | 62 69 74 73 20 6f 66 20 |e Flags |bits of |
|00000e60| 74 68 65 20 27 50 41 43 | 4b 27 20 63 6f 6e 74 72 |the 'PAC|K' contr|
|00000e70| 6f 6c 20 77 68 69 63 68 | 20 62 75 74 74 6f 6e 73 |ol which| buttons|
|00000e80| 20 61 72 65 20 75 73 65 | 64 2e 20 42 69 74 73 20 | are use|d. Bits |
|00000e90| 32 36 20 61 6e 64 20 32 | 37 20 61 72 65 20 75 73 |26 and 2|7 are us|
|00000ea0| 65 64 20 74 6f 20 69 6e | 64 69 63 61 74 65 20 77 |ed to in|dicate w|
|00000eb0| 68 65 74 68 65 72 20 79 | 6f 75 20 75 73 65 20 74 |hether y|ou use t|
|00000ec0| 68 65 20 6c 65 66 74 20 | 61 6e 64 20 72 69 67 68 |he left |and righ|
|00000ed0| 74 20 62 75 74 74 6f 6e | 73 20 61 6e 64 20 61 72 |t button|s and ar|
|00000ee0| 65 20 64 65 73 63 72 69 | 62 65 64 20 69 6e 20 74 |e descri|bed in t|
|00000ef0| 68 65 20 44 65 76 69 63 | 65 20 4d 61 6e 61 67 65 |he Devic|e Manage|
|00000f00| 72 20 63 68 61 70 74 65 | 72 73 20 69 6e 20 49 6e |r chapte|rs in In|
|00000f10| 73 69 64 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 76 |side Mac|intosh v|
|00000f20| 6f 6c 75 6d 65 73 20 49 | 56 20 61 6e 64 20 56 2e |olumes I|V and V.|
|00000f30| 0d 42 69 74 20 32 30 20 | 74 65 6c 6c 73 20 74 68 |.Bit 20 |tells th|
|00000f40| 65 20 43 68 6f 6f 73 65 | 72 20 74 68 61 74 20 79 |e Choose|r that y|
|00000f50| 6f 75 20 61 72 65 20 65 | 6d 70 6c 6f 79 69 6e 67 |ou are e|mploying|
|00000f60| 20 74 68 65 20 6f 6e 20 | 61 6e 64 20 6f 66 66 20 | the on |and off |
|00000f70| 72 61 64 69 6f 20 62 75 | 74 74 6f 6e 73 2e 20 54 |radio bu|ttons. T|
|00000f80| 68 65 69 72 20 74 69 74 | 6c 65 73 20 63 61 6e 20 |heir tit|les can |
|00000f90| 62 65 20 73 6f 6d 65 74 | 68 69 6e 67 20 6f 74 68 |be somet|hing oth|
|00000fa0| 65 72 20 74 68 61 6e 20 | d2 6f 6e d3 20 61 6e 64 |er than |.on. and|
|00000fb0| 20 d2 6f 66 66 d3 2c 20 | 6f 66 20 63 6f 75 72 73 | .off., |of cours|
|00000fc0| 65 2c 20 62 75 74 20 77 | 65 d5 6c 6c 20 63 6f 6e |e, but w|e.ll con|
|00000fd0| 74 69 6e 75 65 20 74 6f | 20 75 73 65 20 74 68 6f |tinue to| use tho|
|00000fe0| 73 65 20 6e 61 6d 65 73 | 20 73 69 6e 63 65 20 74 |se names| since t|
|00000ff0| 68 61 74 20 69 73 20 77 | 68 61 74 20 74 68 65 20 |hat is w|hat the |
|00001000| 4c 61 73 65 72 57 72 69 | 74 65 72 20 64 72 69 76 |LaserWri|ter driv|
|00001010| 65 72 20 28 35 2e 30 20 | 6f 72 20 6c 61 74 65 72 |er (5.0 |or later|
|00001020| 29 20 63 61 6c 6c 73 20 | 74 68 65 6d 2e 20 49 6e |) calls |them. In|
|00001030| 20 61 64 64 69 74 69 6f | 6e 20 74 6f 20 74 68 65 | additio|n to the|
|00001040| 20 63 6f 6e 74 72 6f 6c | 73 20 61 6e 64 20 74 68 | control|s and th|
|00001050| 65 69 72 20 74 69 74 6c | 65 73 2c 20 61 20 73 74 |eir titl|es, a st|
|00001060| 61 74 69 63 20 6c 61 62 | 65 6c 20 28 d2 42 61 63 |atic lab|el (.Bac|
|00001070| 6b 67 72 6f 75 6e 64 20 | 50 72 69 6e 74 69 6e 67 |kground |Printing|
|00001080| 3a d3 20 66 6f 72 20 74 | 68 65 20 4c 61 73 65 72 |:. for t|he Laser|
|00001090| 57 72 69 74 65 72 29 20 | 77 69 6c 6c 20 62 65 20 |Writer) |will be |
|000010a0| 64 69 73 70 6c 61 79 65 | 64 2e 0d 54 68 65 20 74 |displaye|d..The t|
|000010b0| 69 74 6c 65 20 73 74 72 | 69 6e 67 73 20 66 6f 72 |itle str|ings for|
|000010c0| 20 74 68 65 73 65 20 72 | 61 64 69 6f 20 62 75 74 | these r|adio but|
|000010d0| 74 6f 6e 73 20 61 72 65 | 20 63 6f 6e 74 61 69 6e |tons are| contain|
|000010e0| 65 64 20 69 6e 20 74 68 | 65 20 27 53 54 52 ca 27 |ed in th|e 'STR.'|
|000010f0| 20 72 65 73 6f 75 72 63 | 65 73 20 77 69 74 68 20 | resourc|es with |
|00001100| 49 44 73 20 d0 34 30 38 | 39 20 61 6e 64 20 d0 34 |IDs .408|9 and .4|
|00001110| 30 38 38 20 69 6e 20 74 | 68 65 20 64 65 76 69 63 |088 in t|he devic|
|00001120| 65 20 72 65 73 6f 75 72 | 63 65 20 66 69 6c 65 2e |e resour|ce file.|
|00001130| 20 54 68 65 20 73 74 72 | 69 6e 67 20 66 6f 72 20 | The str|ing for |
|00001140| 74 68 65 20 6c 61 62 65 | 6c 20 69 73 20 63 6f 6e |the labe|l is con|
|00001150| 74 61 69 6e 65 64 20 69 | 6e 20 27 53 54 52 ca 27 |tained i|n 'STR.'|
|00001160| 20 72 65 73 6f 75 72 63 | 65 20 d0 34 30 38 37 2e | resourc|e .4087.|
|00001170| 0d 54 68 65 20 72 65 63 | 74 61 6e 67 6c 65 73 20 |.The rec|tangles |
|00001180| 66 6f 72 20 74 68 65 73 | 65 20 69 74 65 6d 73 20 |for thes|e items |
|00001190| 61 72 65 20 64 65 66 69 | 6e 65 64 20 69 6e 20 74 |are defi|ned in t|
|000011a0| 68 65 20 27 6e 72 63 74 | 27 20 d0 34 30 39 36 20 |he 'nrct|' .4096 |
|000011b0| 72 65 73 6f 75 72 63 65 | 20 69 6e 20 74 68 65 20 |resource| in the |
|000011c0| 64 65 76 69 63 65 20 72 | 65 73 6f 75 72 63 65 20 |device r|esource |
|000011d0| 66 69 6c 65 2e 20 20 54 | 68 65 20 44 65 76 69 63 |file. T|he Devic|
|000011e0| 65 20 4d 61 6e 61 67 65 | 72 20 63 68 61 70 74 65 |e Manage|r chapte|
|000011f0| 72 20 6f 66 20 49 6e 73 | 69 64 65 20 4d 61 63 69 |r of Ins|ide Maci|
|00001200| 6e 74 6f 73 68 20 56 2d | 34 33 30 20 64 65 73 63 |ntosh V-|430 desc|
|00001210| 72 69 62 65 73 20 74 68 | 65 20 27 6e 72 63 74 27 |ribes th|e 'nrct'|
|00001220| 20 72 65 73 6f 75 72 63 | 65 73 2e 20 54 68 65 20 | resourc|es. The |
|00001230| 74 68 69 72 64 20 61 6e | 64 20 66 6f 75 72 74 68 |third an|d fourth|
|00001240| 20 72 65 63 74 61 6e 67 | 6c 65 73 20 70 6f 73 69 | rectang|les posi|
|00001250| 74 69 6f 6e 20 74 68 65 | 20 72 61 64 69 6f 20 62 |tion the| radio b|
|00001260| 75 74 74 6f 6e 73 20 77 | 68 69 6c 65 20 74 68 65 |uttons w|hile the|
|00001270| 20 66 69 66 74 68 20 72 | 65 63 74 61 6e 67 6c 65 | fifth r|ectangle|
|00001280| 20 70 6f 73 69 74 69 6f | 6e 73 20 74 68 65 20 6c | positio|ns the l|
|00001290| 61 62 65 6c 2e 0d 46 6f | 72 20 65 78 61 6d 70 6c |abel..Fo|r exampl|
|000012a0| 65 2c 20 20 74 68 65 20 | 43 68 6f 6f 73 65 72 20 |e, the |Chooser |
|000012b0| 69 6e 74 65 72 66 61 63 | 65 20 70 69 63 74 75 72 |interfac|e pictur|
|000012c0| 65 64 20 62 65 6c 6f 77 | 20 63 6f 72 72 65 73 70 |ed below| corresp|
|000012d0| 6f 6e 64 73 20 74 6f 20 | 74 68 65 20 66 6f 6c 6c |onds to |the foll|
|000012e0| 6f 77 69 6e 67 20 52 65 | 7a 20 69 6e 70 75 74 2e |owing Re|z input.|
|000012f0| 0d 09 2f 2a 20 6c 61 62 | 65 6c 20 66 6f 72 20 72 |../* lab|el for r|
|00001300| 61 64 69 6f 20 62 75 74 | 74 6f 6e 73 20 2a 2f 0d |adio but|tons */.|
|00001310| 09 72 65 73 6f 75 72 63 | 65 20 27 53 54 52 20 27 |.resourc|e 'STR '|
|00001320| 20 28 2d 34 30 38 37 29 | 20 7b 0d 09 09 22 54 75 | (-4087)| {..."Tu|
|00001330| 72 6e 20 6d 65 3a 22 0d | 09 7d 3b 0d 09 2f 2a 20 |rn me:".|.};../* |
|00001340| d2 6f 66 66 d3 20 72 61 | 64 69 6f 20 62 75 74 74 |.off. ra|dio butt|
|00001350| 6f 6e 20 2a 2f 0d 09 72 | 65 73 6f 75 72 63 65 20 |on */..r|esource |
|00001360| 27 53 54 52 20 27 20 28 | 2d 34 30 38 38 29 20 7b |'STR ' (|-4088) {|
|00001370| 0d 09 09 22 4f 66 66 22 | 0d 09 7d 3b 0d 09 2f 2a |..."Off"|..};../*|
|00001380| 20 d2 6f 6e d3 20 72 61 | 64 69 6f 20 62 75 74 74 | .on. ra|dio butt|
|00001390| 6f 6e 20 2a 2f 0d 09 72 | 65 73 6f 75 72 63 65 20 |on */..r|esource |
|000013a0| 27 53 54 52 20 27 20 28 | 2d 34 30 38 39 29 20 7b |'STR ' (|-4089) {|
|000013b0| 0d 09 09 22 4f 6e 22 0d | 09 7d 3b 0d 09 72 65 73 |..."On".|.};..res|
|000013c0| 6f 75 72 63 65 20 27 6e | 72 63 74 27 20 28 2d 34 |ource 'n|rct' (-4|
|000013d0| 30 39 36 29 20 7b 0d 09 | 09 7b 20 0d 09 09 2f 2a |096) {..|.{ .../*|
|000013e0| 20 5b 31 5d 20 4c 65 66 | 74 20 42 75 74 74 6f 6e | [1] Lef|t Button|
|000013f0| 20 2a 2f 0d 09 09 7b 30 | 2c 20 30 2c 20 30 2c 20 | */...{0|, 0, 0, |
|00001400| 30 7d 2c 0d 09 09 2f 2a | 20 5b 32 5d 20 52 69 67 |0},.../*| [2] Rig|
|00001410| 68 74 20 42 75 74 74 6f | 6e 20 2a 2f 0d 09 09 7b |ht Butto|n */...{|
|00001420| 30 2c 20 30 2c 20 30 2c | 20 30 7d 2c 0d 09 09 2f |0, 0, 0,| 0},.../|
|00001430| 2a 20 5b 33 5d 20 6f 6e | 20 52 61 64 69 6f 20 42 |* [3] on| Radio B|
|00001440| 75 74 74 6f 6e 20 2a 2f | 0d 09 09 7b 31 31 34 2c |utton */|...{114,|
|00001450| 20 32 36 30 2c 20 31 33 | 30 2c 20 33 32 30 7d 2c | 260, 13|0, 320},|
|00001460| 0d 09 09 2f 2a 20 5b 34 | 5d 20 6f 66 66 20 52 61 |.../* [4|] off Ra|
|00001470| 64 69 6f 20 42 75 74 74 | 6f 6e 20 2a 2f 0d 09 09 |dio Butt|on */...|
|00001480| 7b 31 31 34 2c 20 33 33 | 30 2c 20 31 33 30 2c 20 |{114, 33|0, 130, |
|00001490| 33 39 30 7d 2c 0d 09 09 | 2f 2a 20 5b 35 5d 20 4c |390},...|/* [5] L|
|000014a0| 61 62 65 6c 20 66 6f 72 | 20 52 61 64 69 6f 20 42 |abel for| Radio B|
|000014b0| 75 74 74 6f 6e 73 20 2a | 2f 0d 09 09 7b 31 31 34 |uttons *|/...{114|
|000014c0| 2c 20 31 37 37 2c 20 31 | 33 30 2c 20 32 35 30 7d |, 177, 1|30, 250}|
|000014d0| 0d 09 09 7d 0d 09 7d 3b | 0d 49 66 20 74 68 65 20 |...}..};|.If the |
|000014e0| 72 65 63 74 61 6e 67 6c | 65 73 20 66 6f 72 20 74 |rectangl|es for t|
|000014f0| 68 65 73 65 20 69 74 65 | 6d 73 20 61 72 65 20 6e |hese ite|ms are n|
|00001500| 6f 74 20 73 70 65 63 69 | 66 69 65 64 20 69 6e 20 |ot speci|fied in |
|00001510| 74 68 65 20 27 6e 72 63 | 74 27 20 72 65 73 6f 75 |the 'nrc|t' resou|
|00001520| 72 63 65 2c 20 74 68 65 | 6e 20 74 68 65 20 43 68 |rce, the|n the Ch|
|00001530| 6f 6f 73 65 72 20 75 73 | 65 73 20 64 65 66 61 75 |ooser us|es defau|
|00001540| 6c 74 20 70 6f 73 69 74 | 69 6f 6e 73 20 66 6f 72 |lt posit|ions for|
|00001550| 20 74 68 65 73 65 20 69 | 74 65 6d 73 20 66 72 6f | these i|tems fro|
|00001560| 6d 20 74 68 65 20 43 68 | 6f 6f 73 65 72 d5 73 20 |m the Ch|ooser.s |
|00001570| 70 72 69 76 61 74 65 20 | 27 6e 72 63 74 27 20 72 |private |'nrct' r|
|00001580| 65 73 6f 75 72 63 65 2e | 20 54 68 65 73 65 20 64 |esource.| These d|
|00001590| 65 66 61 75 6c 74 20 70 | 6f 73 69 74 69 6f 6e 73 |efault p|ositions|
|000015a0| 20 61 72 65 3a 0d 09 09 | 2f 2a 20 5b 33 5d 20 6f | are:...|/* [3] o|
|000015b0| 6e 20 52 61 64 69 6f 20 | 42 75 74 74 6f 6e 20 2a |n Radio |Button *|
|000015c0| 2f 0d 09 09 7b 31 31 34 | 2c 20 32 37 32 2c 20 31 |/...{114|, 272, 1|
|000015d0| 33 30 2c 20 33 33 32 7d | 2c 0d 09 09 2f 2a 20 5b |30, 332}|,.../* [|
|000015e0| 34 5d 20 6f 66 66 20 52 | 61 64 69 6f 20 42 75 74 |4] off R|adio But|
|000015f0| 74 6f 6e 20 2a 2f 0d 09 | 09 7b 31 31 34 2c 20 33 |ton */..|.{114, 3|
|00001600| 33 35 2c 20 31 33 30 2c | 20 33 39 35 7d 2c 0d 09 |35, 130,| 395},..|
|00001610| 09 2f 2a 20 5b 35 5d 20 | 4c 61 62 65 6c 20 66 6f |./* [5] |Label fo|
|00001620| 72 20 52 61 64 69 6f 20 | 42 75 74 74 6f 6e 73 20 |r Radio |Buttons |
|00001630| 2a 2f 0d 09 09 7b 31 31 | 34 2c 20 31 37 30 2c 20 |*/...{11|4, 170, |
|00001640| 31 33 30 2c 20 32 36 37 | 7d 2c 0d 49 6e 20 6f 72 |130, 267|},.In or|
|00001650| 64 65 72 20 66 6f 72 20 | 74 68 65 20 72 61 64 69 |der for |the radi|
|00001660| 6f 20 62 75 74 74 6f 6e | 73 20 74 6f 20 62 65 20 |o button|s to be |
|00001670| 64 69 73 70 6c 61 79 65 | 64 2c 20 74 68 65 20 27 |displaye|d, the '|
|00001680| 50 41 43 4b 27 20 6d 75 | 73 74 20 63 61 6c 6c 20 |PACK' mu|st call |
|00001690| 53 68 6f 77 43 6f 6e 74 | 72 6f 6c 20 66 6f 72 20 |ShowCont|rol for |
|000016a0| 65 61 63 68 20 6f 66 20 | 74 68 65 6d 2c 20 61 6e |each of |them, an|
|000016b0| 64 20 70 61 73 73 20 69 | 6e 20 74 68 65 20 63 6f |d pass i|n the co|
|000016c0| 72 72 65 73 70 6f 6e 64 | 69 6e 67 20 43 6f 6e 74 |rrespond|ing Cont|
|000016d0| 72 6f 6c 48 61 6e 64 6c | 65 2e 20 54 6f 20 74 75 |rolHandl|e. To tu|
|000016e0| 72 6e 20 6f 6e 65 20 6f | 66 20 74 68 65 20 72 61 |rn one o|f the ra|
|000016f0| 64 69 6f 20 62 75 74 74 | 6f 6e 73 20 d2 6f 6e d3 |dio butt|ons .on.|
|00001700| 20 61 6e 64 20 74 68 65 | 20 6f 74 68 65 72 20 d2 | and the| other .|
|00001710| 6f 66 66 2c d3 20 74 68 | 65 20 27 50 41 43 4b 27 |off,. th|e 'PACK'|
|00001720| 20 6d 75 73 74 20 63 61 | 6c 6c 20 53 65 74 43 74 | must ca|ll SetCt|
|00001730| 6c 56 61 6c 75 65 2e 20 | 54 68 65 20 62 65 73 74 |lValue. |The best|
|00001740| 20 74 69 6d 65 20 74 6f | 20 63 61 6c 6c 20 74 68 | time to| call th|
|00001750| 65 73 65 20 72 6f 75 74 | 69 6e 65 73 20 74 6f 20 |ese rout|ines to |
|00001760| 73 65 74 20 75 70 20 74 | 68 65 20 72 61 64 69 6f |set up t|he radio|
|00001770| 20 62 75 74 74 6f 6e 73 | 20 69 73 20 77 68 65 6e | buttons| is when|
|00001780| 20 74 68 65 20 27 50 41 | 43 4b 27 20 72 65 63 65 | the 'PA|CK' rece|
|00001790| 69 76 65 73 20 74 68 65 | 20 69 6e 69 74 4d 73 67 |ives the| initMsg|
|000017a0| 2e 20 42 79 20 73 68 6f | 77 69 6e 67 20 74 68 65 |. By sho|wing the|
|000017b0| 20 62 75 74 74 6f 6e 73 | 20 61 66 74 65 72 20 79 | buttons| after y|
|000017c0| 6f 75 20 68 61 76 65 20 | 73 65 74 20 74 68 65 69 |ou have |set thei|
|000017d0| 72 20 76 61 6c 75 65 73 | 2c 20 79 6f 75 20 63 61 |r values|, you ca|
|000017e0| 6e 20 61 76 6f 69 64 20 | 75 6e 6e 65 63 65 73 73 |n avoid |unnecess|
|000017f0| 61 72 79 20 72 65 64 72 | 61 77 69 6e 67 2e 0d 57 |ary redr|awing..W|
|00001800| 68 65 6e 20 74 68 65 20 | 75 73 65 72 20 63 6c 69 |hen the |user cli|
|00001810| 63 6b 73 20 65 69 74 68 | 65 72 20 6f 66 20 74 68 |cks eith|er of th|
|00001820| 65 20 72 61 64 69 6f 20 | 62 75 74 74 6f 6e 73 2c |e radio |buttons,|
|00001830| 20 74 68 65 20 27 50 41 | 43 4b 27 20 72 65 63 65 | the 'PA|CK' rece|
|00001840| 69 76 65 73 20 62 75 74 | 74 6f 6e 4d 73 67 20 61 |ives but|tonMsg a|
|00001850| 6e 64 20 6f 62 6a 4e 61 | 6d 65 20 63 6f 6e 74 61 |nd objNa|me conta|
|00001860| 69 6e 73 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |ins a po|inter to|
|00001870| 20 61 6e 20 61 72 72 61 | 79 20 6f 66 20 43 6f 6e | an arra|y of Con|
|00001880| 74 72 6f 6c 48 61 6e 64 | 6c 65 73 2c 20 61 73 20 |trolHand|les, as |
|00001890| 65 78 70 6c 61 69 6e 65 | 64 20 61 62 6f 76 65 2e |explaine|d above.|
|000018a0| 20 54 68 65 20 27 50 41 | 43 4b 27 20 6b 6e 6f 77 | The 'PA|CK' know|
|000018b0| 73 20 77 68 69 63 68 20 | 6f 66 20 74 68 65 20 72 |s which |of the r|
|000018c0| 61 64 69 6f 20 62 75 74 | 74 6f 6e 73 20 77 61 73 |adio but|tons was|
|000018d0| 20 63 6c 69 63 6b 65 64 | 20 74 68 72 6f 75 67 68 | clicked| through|
|000018e0| 20 74 68 65 20 6c 6f 77 | 2d 6f 72 64 65 72 20 62 | the low|-order b|
|000018f0| 79 74 65 20 6f 66 20 74 | 68 65 20 70 32 20 70 61 |yte of t|he p2 pa|
|00001900| 72 61 6d 65 74 65 72 2e | 20 54 68 69 73 20 62 79 |rameter.| This by|
|00001910| 74 65 20 63 6f 6e 74 61 | 69 6e 73 20 33 20 69 66 |te conta|ins 3 if|
|00001920| 20 74 68 65 20 d2 6f 6e | d3 20 72 61 64 69 6f 20 | the .on|. radio |
|00001930| 62 75 74 74 6f 6e 20 77 | 61 73 20 63 6c 69 63 6b |button w|as click|
|00001940| 65 64 2c 20 6f 72 20 34 | 20 69 66 20 74 68 65 20 |ed, or 4| if the |
|00001950| d2 6f 66 66 d3 20 72 61 | 64 69 6f 20 62 75 74 74 |.off. ra|dio butt|
|00001960| 6f 6e 20 77 61 73 20 63 | 6c 69 63 6b 65 64 2e 20 |on was c|licked. |
|00001970| 49 74 20 69 73 20 74 68 | 65 20 64 65 76 69 63 65 |It is th|e device|
|00001980| 20 70 61 63 6b 61 67 65 | d5 73 20 72 65 73 70 6f | package|.s respo|
|00001990| 6e 73 69 62 69 6c 69 74 | 79 20 74 6f 20 73 65 74 |nsibilit|y to set|
|000019a0| 20 6f 72 20 63 6c 65 61 | 72 20 74 68 65 20 72 61 | or clea|r the ra|
|000019b0| 64 69 6f 20 62 75 74 74 | 6f 6e 73 20 69 6e 20 72 |dio butt|ons in r|
|000019c0| 65 73 70 6f 6e 73 65 20 | 74 6f 20 74 68 65 20 75 |esponse |to the u|
|000019d0| 73 65 72 d5 73 20 61 63 | 74 69 6f 6e 2e 0d 46 75 |ser.s ac|tion..Fu|
|000019e0| 72 74 68 65 72 20 52 65 | 66 65 72 65 6e 63 65 3a |rther Re|ference:|
|000019f0| 0d a5 09 54 68 65 20 44 | 65 76 69 63 65 20 4d 61 |...The D|evice Ma|
|00001a00| 6e 61 67 65 72 20 28 56 | 6f 6c 75 6d 65 73 20 49 |nager (V|olumes I|
|00001a10| 49 2c 20 49 56 2c 20 61 | 6e 64 20 56 29 0d a5 09 |I, IV, a|nd V)...|
|00001a20| 54 68 65 20 43 6f 6e 74 | 72 6f 6c 20 50 61 6e 65 |The Cont|rol Pane|
|00001a30| 6c 20 28 56 6f 6c 75 6d | 65 20 56 29 0d 43 6f 6d |l (Volum|e V).Com|
|00001a40| 70 61 74 69 62 69 6c 69 | 74 79 20 47 75 69 64 65 |patibili|ty Guide|
|00001a50| 6c 69 6e 65 73 0d 4f 76 | 65 72 76 69 65 77 09 4d |lines.Ov|erview.M|
|00001a60| 2e 4f 56 2e 43 6f 6d 70 | 61 74 69 62 69 6c 69 74 |.OV.Comp|atibilit|
|00001a70| 79 0d 52 65 76 69 73 65 | 64 20 62 79 3a 09 4c 6f |y.Revise|d by:.Lo|
|00001a80| 75 65 6c 6c 61 20 50 69 | 7a 7a 75 74 69 09 46 65 |uella Pi|zzuti.Fe|
|00001a90| 62 72 75 61 72 79 20 20 | 31 39 38 37 0d 57 72 69 |bruary |1987.Wri|
|00001aa0| 74 74 65 6e 20 62 79 3a | 09 43 61 72 79 20 43 6c |tten by:|.Cary Cl|
|00001ab0| 61 72 6b 20 09 4a 61 6e | 75 61 72 79 20 31 39 38 |ark .Jan|uary 198|
|00001ac0| 36 0d 09 09 53 63 6f 74 | 74 20 4b 6e 61 73 74 65 |6...Scot|t Knaste|
|00001ad0| 72 20 09 0d 41 70 70 6c | 65 20 68 61 73 20 6d 61 |r ..Appl|e has ma|
|00001ae0| 6e 79 20 65 6e 68 61 6e | 63 65 6d 65 6e 74 73 20 |ny enhan|cements |
|00001af0| 70 6c 61 6e 6e 65 64 20 | 66 6f 72 20 74 68 65 20 |planned |for the |
|00001b00| 4d 61 63 69 6e 74 6f 73 | 68 20 66 61 6d 69 6c 79 |Macintos|h family|
|00001b10| 20 6f 66 20 63 6f 6d 70 | 75 74 65 72 73 2e 20 54 | of comp|uters. T|
|00001b20| 6f 20 68 65 6c 70 20 65 | 6e 73 75 72 65 20 79 6f |o help e|nsure yo|
|00001b30| 75 72 20 73 6f 66 74 77 | 61 72 65 d5 73 20 63 6f |ur softw|are.s co|
|00001b40| 6d 70 61 74 69 62 69 6c | 69 74 79 20 77 69 74 68 |mpatibil|ity with|
|00001b50| 20 74 68 65 73 65 20 65 | 6e 68 61 6e 63 65 6d 65 | these e|nhanceme|
|00001b60| 6e 74 73 2c 20 63 68 65 | 63 6b 20 65 61 63 68 20 |nts, che|ck each |
|00001b70| 69 74 65 6d 20 69 6e 20 | 74 68 69 73 20 6e 6f 74 |item in |this not|
|00001b80| 65 20 74 6f 20 62 65 20 | 73 75 72 65 20 74 68 61 |e to be |sure tha|
|00001b90| 74 20 79 6f 75 d5 72 65 | 20 66 6f 6c 6c 6f 77 69 |t you.re| followi|
|00001ba0| 6e 67 20 74 68 65 20 72 | 65 63 6f 6d 6d 65 6e 64 |ng the r|ecommend|
|00001bb0| 61 74 69 6f 6e 73 2e 0d | 49 66 20 79 6f 75 72 20 |ations..|If your |
|00001bc0| 73 6f 66 74 77 61 72 65 | 20 69 73 20 77 72 69 74 |software| is writ|
|00001bd0| 74 65 6e 20 69 6e 20 61 | 20 68 69 67 68 2d 6c 65 |ten in a| high-le|
|00001be0| 76 65 6c 20 6c 61 6e 67 | 75 61 67 65 20 6c 69 6b |vel lang|uage lik|
|00001bf0| 65 20 50 61 73 63 61 6c | 20 6f 72 20 43 20 61 6e |e Pascal| or C an|
|00001c00| 64 20 69 66 20 79 6f 75 | 20 61 64 68 65 72 65 20 |d if you| adhere |
|00001c10| 74 6f 20 74 68 65 20 67 | 75 69 64 65 6c 69 6e 65 |to the g|uideline|
|00001c20| 73 20 6c 69 73 74 65 64 | 20 69 6e 20 49 6e 73 69 |s listed| in Insi|
|00001c30| 64 65 20 4d 61 63 69 6e | 74 6f 73 68 2c 20 6d 61 |de Macin|tosh, ma|
|00001c40| 6e 79 20 6f 66 20 74 68 | 65 20 71 75 65 73 74 69 |ny of th|e questi|
|00001c50| 6f 6e 73 20 69 6e 20 74 | 68 69 73 20 6e 6f 74 65 |ons in t|his note|
|00001c60| 20 77 6f 6e d5 74 20 63 | 6f 6e 63 65 72 6e 20 79 | won.t c|oncern y|
|00001c70| 6f 75 2e 20 49 66 20 79 | 6f 75 20 64 65 76 65 6c |ou. If y|ou devel|
|00001c80| 6f 70 20 69 6e 20 61 73 | 73 65 6d 62 6c 79 20 6c |op in as|sembly l|
|00001c90| 61 6e 67 75 61 67 65 2c | 20 79 6f 75 20 73 68 6f |anguage,| you sho|
|00001ca0| 75 6c 64 20 72 65 61 64 | 20 65 61 63 68 20 71 75 |uld read| each qu|
|00001cb0| 65 73 74 69 6f 6e 20 63 | 61 72 65 66 75 6c 6c 79 |estion c|arefully|
|00001cc0| 2e 20 49 66 20 79 6f 75 | 20 61 6e 73 77 65 72 20 |. If you| answer |
|00001cd0| 61 6e 79 20 71 75 65 73 | 74 69 6f 6e 20 d2 79 65 |any ques|tion .ye|
|00001ce0| 73 2c d3 20 79 6f 75 72 | 20 73 6f 66 74 77 61 72 |s,. your| softwar|
|00001cf0| 65 20 6d 61 79 20 65 6e | 63 6f 75 6e 74 65 72 20 |e may en|counter |
|00001d00| 64 69 66 66 69 63 75 6c | 74 79 20 72 75 6e 6e 69 |difficul|ty runni|
|00001d10| 6e 67 20 6f 6e 20 66 75 | 74 75 72 65 20 4d 61 63 |ng on fu|ture Mac|
|00001d20| 69 6e 74 6f 73 68 20 63 | 6f 6d 70 75 74 65 72 73 |intosh c|omputers|
|00001d30| 2c 20 61 6e 64 20 79 6f | 75 20 73 68 6f 75 6c 64 |, and yo|u should|
|00001d40| 20 74 61 6b 65 20 74 68 | 65 20 72 65 63 6f 6d 6d | take th|e recomm|
|00001d50| 65 6e 64 65 64 20 61 63 | 74 69 6f 6e 20 74 6f 20 |ended ac|tion to |
|00001d60| 63 68 61 6e 67 65 20 79 | 6f 75 72 20 73 6f 66 74 |change y|our soft|
|00001d70| 77 61 72 65 2e 0d 44 6f | 20 79 6f 75 20 64 65 70 |ware..Do| you dep|
|00001d80| 65 6e 64 20 6f 6e 20 36 | 38 30 30 30 20 69 6e 73 |end on 6|8000 ins|
|00001d90| 74 72 75 63 74 69 6f 6e | 73 20 77 68 69 63 68 20 |truction|s which |
|00001da0| 72 65 71 75 69 72 65 20 | 74 68 61 74 20 74 68 65 |require |that the|
|00001db0| 20 70 72 6f 63 65 73 73 | 6f 72 20 62 65 20 69 6e | process|or be in|
|00001dc0| 20 73 75 70 65 72 76 69 | 73 6f 72 20 6d 6f 64 65 | supervi|sor mode|
|00001dd0| 3f 0d 49 6e 20 67 65 6e | 65 72 61 6c 2c 20 79 6f |?.In gen|eral, yo|
|00001de0| 75 72 20 73 6f 66 74 77 | 61 72 65 20 73 68 6f 75 |ur softw|are shou|
|00001df0| 6c 64 20 6e 6f 74 20 69 | 6e 63 6c 75 64 65 20 69 |ld not i|nclude i|
|00001e00| 6e 73 74 72 75 63 74 69 | 6f 6e 73 20 77 68 69 63 |nstructi|ons whic|
|00001e10| 68 20 64 65 70 65 6e 64 | 20 6f 6e 20 73 75 70 65 |h depend| on supe|
|00001e20| 72 76 69 73 6f 72 20 6d | 6f 64 65 2e 20 54 68 65 |rvisor m|ode. The|
|00001e30| 73 65 20 69 6e 63 6c 75 | 64 65 20 6d 6f 64 69 66 |se inclu|de modif|
|00001e40| 79 69 6e 67 20 74 68 65 | 20 63 6f 6e 74 65 6e 74 |ying the| content|
|00001e50| 73 20 6f 66 20 74 68 65 | 20 73 74 61 74 75 73 20 |s of the| status |
|00001e60| 72 65 67 69 73 74 65 72 | 2e 20 4d 6f 73 74 20 70 |register|. Most p|
|00001e70| 72 6f 67 72 61 6d 73 20 | 77 68 69 63 68 20 6d 6f |rograms |which mo|
|00001e80| 64 69 66 79 20 74 68 65 | 20 73 74 61 74 75 73 20 |dify the| status |
|00001e90| 72 65 67 69 73 74 65 72 | 20 61 72 65 20 6f 6e 6c |register| are onl|
|00001ea0| 79 20 63 68 61 6e 67 69 | 6e 67 20 74 68 65 20 43 |y changi|ng the C|
|00001eb0| 6f 6e 64 69 74 69 6f 6e | 20 43 6f 64 65 20 52 65 |ondition| Code Re|
|00001ec0| 67 69 73 74 65 72 20 28 | 43 43 52 29 20 68 61 6c |gister (|CCR) hal|
|00001ed0| 66 20 6f 66 20 74 68 65 | 20 73 74 61 74 75 73 20 |f of the| status |
|00001ee0| 72 65 67 69 73 74 65 72 | 2c 20 73 6f 20 61 6e 20 |register|, so an |
|00001ef0| 69 6e 73 74 72 75 63 74 | 69 6f 6e 20 77 68 69 63 |instruct|ion whic|
|00001f00| 68 20 61 64 64 72 65 73 | 73 65 73 20 74 68 65 20 |h addres|ses the |
|00001f10| 43 43 52 20 77 69 6c 6c | 20 77 6f 72 6b 20 66 69 |CCR will| work fi|
|00001f20| 6e 65 2e 20 41 6c 73 6f | 2c 20 79 6f 75 72 20 73 |ne. Also|, your s|
|00001f30| 6f 66 74 77 61 72 65 20 | 73 68 6f 75 6c 64 20 6e |oftware |should n|
|00001f40| 6f 74 20 75 73 65 20 74 | 68 65 20 55 73 65 72 20 |ot use t|he User |
|00001f50| 53 74 61 63 6b 20 50 6f | 69 6e 74 65 72 20 28 55 |Stack Po|inter (U|
|00001f60| 53 50 29 20 6f 72 20 74 | 75 72 6e 20 69 6e 74 65 |SP) or t|urn inte|
|00001f70| 72 72 75 70 74 73 20 6f | 6e 20 61 6e 64 20 6f 66 |rrupts o|n and of|
|00001f80| 66 2e 0d 44 6f 20 79 6f | 75 20 68 61 76 65 20 63 |f..Do yo|u have c|
|00001f90| 6f 64 65 20 77 68 69 63 | 68 20 65 78 65 63 75 74 |ode whic|h execut|
|00001fa0| 65 73 20 69 6e 20 72 65 | 73 70 6f 6e 73 65 20 74 |es in re|sponse t|
|00001fb0| 6f 20 61 6e 20 65 78 63 | 65 70 74 69 6f 6e 20 61 |o an exc|eption a|
|00001fc0| 6e 64 20 72 65 6c 69 65 | 73 20 6f 6e 20 74 68 65 |nd relie|s on the|
|00001fd0| 20 70 6f 73 69 74 69 6f | 6e 20 6f 66 20 64 61 74 | positio|n of dat|
|00001fe0| 61 20 69 6e 20 74 68 65 | 20 65 78 63 65 70 74 69 |a in the| excepti|
|00001ff0| 6f 6e d5 73 20 6c 6f 63 | 61 6c 20 73 74 61 63 6b |on.s loc|al stack|
|00002000| 20 66 72 61 6d 65 3f 0d | 45 78 63 65 70 74 69 6f | frame?.|Exceptio|
|00002010| 6e 20 73 74 61 63 6b 20 | 66 72 61 6d 65 73 20 76 |n stack |frames v|
|00002020| 61 72 79 20 6f 6e 20 64 | 69 66 66 65 72 65 6e 74 |ary on d|ifferent|
|00002030| 20 6d 69 63 72 6f 70 72 | 6f 63 65 73 73 6f 72 73 | micropr|ocessors|
|00002040| 20 69 6e 20 74 68 65 20 | 36 38 30 30 30 20 66 61 | in the |68000 fa|
|00002050| 6d 69 6c 79 2c 20 73 6f | 6d 65 20 6f 66 20 77 68 |mily, so|me of wh|
|00002060| 69 63 68 20 6d 61 79 20 | 62 65 20 75 73 65 64 20 |ich may |be used |
|00002070| 69 6e 20 66 75 74 75 72 | 65 20 4d 61 63 69 6e 74 |in futur|e Macint|
|00002080| 6f 73 68 20 63 6f 6d 70 | 75 74 65 72 73 2e 20 59 |osh comp|uters. Y|
|00002090| 6f 75 20 73 68 6f 75 6c | 64 20 61 76 6f 69 64 20 |ou shoul|d avoid |
|000020a0| 75 73 69 6e 67 20 74 68 | 65 20 54 52 41 50 20 69 |using th|e TRAP i|
|000020b0| 6e 73 74 72 75 63 74 69 | 6f 6e 2e 20 0d 4e 6f 74 |nstructi|on. .Not|
|000020c0| 65 3a 20 59 6f 75 20 63 | 61 6e 20 64 65 74 65 72 |e: You c|an deter|
|000020d0| 6d 69 6e 65 20 77 68 69 | 63 68 20 6d 69 63 72 6f |mine whi|ch micro|
|000020e0| 70 72 6f 63 65 73 73 6f | 72 20 69 73 20 69 6e 73 |processo|r is ins|
|000020f0| 74 61 6c 6c 65 64 20 62 | 79 20 65 78 61 6d 69 6e |talled b|y examin|
|00002100| 69 6e 67 20 74 68 65 20 | 6c 6f 77 2d 6d 65 6d 6f |ing the |low-memo|
|00002110| 72 79 20 67 6c 6f 62 61 | 6c 20 43 50 55 46 6c 61 |ry globa|l CPUFla|
|00002120| 67 20 28 61 20 62 79 74 | 65 20 61 74 20 24 31 32 |g (a byt|e at $12|
|00002130| 46 29 2e 20 54 68 65 73 | 65 20 61 72 65 20 74 68 |F). Thes|e are th|
|00002140| 65 20 76 61 6c 75 65 73 | 3a 0d 09 43 50 55 46 6c |e values|:..CPUFl|
|00002150| 61 67 09 6d 69 63 72 6f | 70 72 6f 63 65 73 73 6f |ag.micro|processo|
|00002160| 72 0d 09 ca ca 24 30 30 | 09 09 36 38 30 30 30 0d |r....$00|..68000.|
|00002170| 09 ca ca 24 30 31 09 09 | 36 38 30 31 30 0d 09 ca |...$01..|68010...|
|00002180| ca 24 30 32 09 09 36 38 | 30 32 30 0d 09 ca ca 24 |.$02..68|020....$|
|00002190| 30 33 09 09 36 38 30 33 | 30 0d 44 6f 20 79 6f 75 |03..6803|0.Do you|
|000021a0| 20 75 73 65 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 | use low|-memory |
|000021b0| 67 6c 6f 62 61 6c 73 20 | 6e 6f 74 20 64 6f 63 75 |globals |not docu|
|000021c0| 6d 65 6e 74 65 64 20 69 | 6e 20 49 6e 73 69 64 65 |mented i|n Inside|
|000021d0| 20 4d 61 63 69 6e 74 6f | 73 68 3f 0d 4f 74 68 65 | Macinto|sh?.Othe|
|000021e0| 72 20 6d 69 63 72 6f 70 | 72 6f 63 65 73 73 6f 72 |r microp|rocessor|
|000021f0| 73 20 69 6e 20 74 68 65 | 20 36 38 30 30 30 20 66 |s in the| 68000 f|
|00002200| 61 6d 69 6c 79 20 75 73 | 65 20 74 68 65 20 65 78 |amily us|e the ex|
|00002210| 63 65 70 74 69 6f 6e 20 | 76 65 63 74 6f 72 73 20 |ception |vectors |
|00002220| 69 6e 20 6c 6f 63 61 74 | 69 6f 6e 73 20 24 30 20 |in locat|ions $0 |
|00002230| 74 68 72 6f 75 67 68 20 | 24 46 46 20 69 6e 20 64 |through |$FF in d|
|00002240| 69 66 66 65 72 65 6e 74 | 20 77 61 79 73 2e 20 4e |ifferent| ways. N|
|00002250| 6f 20 75 6e 64 6f 63 75 | 6d 65 6e 74 65 64 20 6c |o undocu|mented l|
|00002260| 6f 63 61 74 69 6f 6e 20 | 62 65 6c 6f 77 20 74 68 |ocation |below th|
|00002270| 65 20 73 79 73 74 65 6d | 20 68 65 61 70 20 28 24 |e system| heap ($|
|00002280| 31 30 30 20 74 68 72 6f | 75 67 68 20 24 31 33 46 |100 thro|ugh $13F|
|00002290| 46 29 20 69 73 20 67 75 | 61 72 61 6e 74 65 65 64 |F) is gu|aranteed|
|000022a0| 20 74 6f 20 62 65 20 61 | 76 61 69 6c 61 62 6c 65 | to be a|vailable|
|000022b0| 20 66 6f 72 20 75 73 65 | 20 69 6e 20 66 75 74 75 | for use| in futu|
|000022c0| 72 65 20 73 79 73 74 65 | 6d 73 2e 0d 44 6f 20 79 |re syste|ms..Do y|
|000022d0| 6f 75 20 6d 61 6b 65 20 | 61 73 73 75 6d 70 74 69 |ou make |assumpti|
|000022e0| 6f 6e 73 20 61 62 6f 75 | 74 20 74 68 65 20 66 69 |ons abou|t the fi|
|000022f0| 6c 65 20 73 79 73 74 65 | 6d 20 77 68 69 63 68 20 |le syste|m which |
|00002300| 61 72 65 20 6e 6f 74 20 | 63 6f 6e 73 69 73 74 65 |are not |consiste|
|00002310| 6e 74 20 77 69 74 68 20 | 62 6f 74 68 20 74 68 65 |nt with |both the|
|00002320| 20 6f 72 69 67 69 6e 61 | 6c 20 4d 61 63 69 6e 74 | origina|l Macint|
|00002330| 6f 73 68 20 46 69 6c 65 | 20 53 79 73 74 65 6d 20 |osh File| System |
|00002340| 61 6e 64 20 74 68 65 20 | 48 69 65 72 61 72 63 68 |and the |Hierarch|
|00002350| 69 63 61 6c 20 46 69 6c | 65 20 53 79 73 74 65 6d |ical Fil|e System|
|00002360| 3f 0d 59 6f 75 72 20 61 | 70 70 6c 69 63 61 74 69 |?.Your a|pplicati|
|00002370| 6f 6e 73 20 73 68 6f 75 | 6c 64 20 62 65 20 63 6f |ons shou|ld be co|
|00002380| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 62 6f |mpatible| with bo|
|00002390| 74 68 20 66 69 6c 65 20 | 73 79 73 74 65 6d 73 2e |th file |systems.|
|000023a0| 20 54 68 65 20 65 61 73 | 69 65 73 74 20 77 61 79 | The eas|iest way|
|000023b0| 20 74 6f 20 64 6f 20 74 | 68 69 73 20 69 73 20 74 | to do t|his is t|
|000023c0| 6f 20 73 74 69 63 6b 20 | 74 6f 20 74 68 65 20 6f |o stick |to the o|
|000023d0| 6c 64 20 66 69 6c 65 73 | 20 73 79 73 74 65 6d 20 |ld files| system |
|000023e0| 74 72 61 70 20 63 61 6c | 6c 73 20 28 77 68 69 63 |trap cal|ls (whic|
|000023f0| 68 20 77 6f 72 6b 20 77 | 69 74 68 20 62 6f 74 68 |h work w|ith both|
|00002400| 20 66 69 6c 65 20 73 79 | 73 74 65 6d 73 29 20 61 | file sy|stems) a|
|00002410| 6e 64 20 61 76 6f 69 64 | 20 64 69 72 65 63 74 20 |nd avoid| direct |
|00002420| 6d 61 6e 69 70 75 6c 61 | 74 69 6f 6e 20 6f 66 20 |manipula|tion of |
|00002430| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 73 20 |data str|uctures |
|00002440| 73 75 63 68 20 61 73 20 | 66 69 6c 65 20 63 6f 6e |such as |file con|
|00002450| 74 72 6f 6c 20 62 6c 6f | 63 6b 73 20 61 6e 64 20 |trol blo|cks and |
|00002460| 76 6f 6c 75 6d 65 20 63 | 6f 6e 74 72 6f 6c 20 62 |volume c|ontrol b|
|00002470| 6c 6f 63 6b 73 20 77 68 | 65 6e 65 76 65 72 20 70 |locks wh|enever p|
|00002480| 6f 73 73 69 62 6c 65 2e | 0d 44 6f 20 79 6f 75 20 |ossible.|.Do you |
|00002490| 64 65 70 65 6e 64 20 6f | 6e 20 74 68 65 20 73 79 |depend o|n the sy|
|000024a0| 73 74 65 6d 20 6f 72 20 | 61 70 70 6c 69 63 61 74 |stem or |applicat|
|000024b0| 69 6f 6e 20 68 65 61 70 | 73 20 73 74 61 72 74 69 |ion heap|s starti|
|000024c0| 6e 67 20 61 74 20 61 20 | 68 61 72 64 2d 63 6f 64 |ng at a |hard-cod|
|000024d0| 65 64 20 61 64 64 72 65 | 73 73 3f 0d 54 68 65 20 |ed addre|ss?.The |
|000024e0| 73 74 61 72 74 69 6e 67 | 20 61 64 64 72 65 73 73 |starting| address|
|000024f0| 65 73 20 61 6e 64 20 74 | 68 65 20 73 69 7a 65 20 |es and t|he size |
|00002500| 6f 66 20 74 68 65 20 73 | 79 73 74 65 6d 20 61 6e |of the s|ystem an|
|00002510| 64 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 68 65 |d applic|ation he|
|00002520| 61 70 73 20 68 61 73 20 | 61 6c 72 65 61 64 79 20 |aps has |already |
|00002530| 63 68 61 6e 67 65 64 20 | 28 4d 61 63 69 6e 74 6f |changed |(Macinto|
|00002540| 73 68 20 76 73 2e 20 4d | 61 63 69 6e 74 6f 73 68 |sh vs. M|acintosh|
|00002550| 20 50 6c 75 73 29 20 61 | 6e 64 20 77 69 6c 6c 20 | Plus) a|nd will |
|00002560| 63 68 61 6e 67 65 20 61 | 67 61 69 6e 20 69 6e 20 |change a|gain in |
|00002570| 74 68 65 20 66 75 74 75 | 72 65 2e 20 55 73 65 20 |the futu|re. Use |
|00002580| 74 68 65 20 67 6c 6f 62 | 61 6c 20 41 70 70 6c 5a |the glob|al ApplZ|
|00002590| 6f 6e 65 20 74 6f 20 66 | 69 6e 64 20 74 68 65 20 |one to f|ind the |
|000025a0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 68 65 61 70 |applicat|ion heap|
|000025b0| 20 61 6e 64 20 53 79 73 | 5a 6f 6e 65 20 74 6f 20 | and Sys|Zone to |
|000025c0| 66 69 6e 64 20 74 68 65 | 20 73 79 73 74 65 6d 20 |find the| system |
|000025d0| 68 65 61 70 2e 20 41 6c | 73 6f 2c 20 64 6f 6e d5 |heap. Al|so, don.|
|000025e0| 74 20 63 6f 75 6e 74 20 | 6f 6e 20 74 68 65 20 61 |t count |on the a|
|000025f0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 68 65 61 70 20 |pplicati|on heap |
|00002600| 7a 6f 6e 65 20 73 74 61 | 72 74 69 6e 67 20 61 74 |zone sta|rting at|
|00002610| 20 61 6e 20 61 64 64 72 | 65 73 73 20 6c 65 73 73 | an addr|ess less|
|00002620| 20 74 68 61 6e 20 36 35 | 35 33 36 20 28 74 68 61 | than 65|536 (tha|
|00002630| 74 20 69 73 2c 20 61 20 | 73 79 73 74 65 6d 20 68 |t is, a |system h|
|00002640| 65 61 70 20 73 6d 61 6c | 6c 65 72 20 74 68 61 6e |eap smal|ler than|
|00002650| 20 36 34 4b 29 2e 0d 44 | 6f 20 79 6f 75 20 6c 6f | 64K)..D|o you lo|
|00002660| 6f 6b 20 74 68 72 6f 75 | 67 68 20 74 68 65 20 73 |ok throu|gh the s|
|00002670| 79 73 74 65 6d d5 73 20 | 71 75 65 75 65 73 20 64 |ystem.s |queues d|
|00002680| 69 72 65 63 74 6c 79 3f | 0d 49 6e 20 67 65 6e 65 |irectly?|.In gene|
|00002690| 72 61 6c 2c 20 79 6f 75 | 20 73 68 6f 75 6c 64 20 |ral, you| should |
|000026a0| 61 76 6f 69 64 20 65 78 | 61 6d 69 6e 69 6e 67 20 |avoid ex|amining |
|000026b0| 71 75 65 75 65 20 65 6c | 65 6d 65 6e 74 73 20 64 |queue el|ements d|
|000026c0| 69 72 65 63 74 6c 79 2e | 20 49 6e 73 74 65 61 64 |irectly.| Instead|
|000026d0| 2c 20 75 73 65 20 74 68 | 65 20 4f 70 65 72 61 74 |, use th|e Operat|
|000026e0| 69 6e 67 20 53 79 73 74 | 65 6d 20 63 61 6c 6c 73 |ing Syst|em calls|
|000026f0| 20 74 6f 20 6d 61 6e 69 | 70 75 6c 61 74 65 20 71 | to mani|pulate q|
|00002700| 75 65 75 65 20 65 6c 65 | 6d 65 6e 74 73 2e 0d 44 |ueue ele|ments..D|
|00002710| 6f 20 79 6f 75 20 64 69 | 72 65 63 74 6c 79 20 61 |o you di|rectly a|
|00002720| 64 64 72 65 73 73 20 6d | 65 6d 6f 72 79 2d 6d 61 |ddress m|emory-ma|
|00002730| 70 70 65 64 20 68 61 72 | 64 77 61 72 65 20 73 75 |pped har|dware su|
|00002740| 63 68 20 61 73 20 74 68 | 65 20 56 49 41 2c 20 74 |ch as th|e VIA, t|
|00002750| 68 65 20 53 43 43 2c 20 | 6f 72 20 74 68 65 20 49 |he SCC, |or the I|
|00002760| 57 4d 3f 0d 59 6f 75 20 | 73 68 6f 75 6c 64 20 61 |WM?.You |should a|
|00002770| 76 6f 69 64 20 61 63 63 | 65 73 73 69 6e 67 20 74 |void acc|essing t|
|00002780| 68 69 73 20 6d 65 6d 6f | 72 79 20 64 69 72 65 63 |his memo|ry direc|
|00002790| 74 6c 79 20 61 6e 64 20 | 75 73 65 20 74 72 61 70 |tly and |use trap|
|000027a0| 20 63 61 6c 6c 73 20 69 | 6e 73 74 65 61 64 20 28 | calls i|nstead (|
|000027b0| 64 69 73 6b 20 64 72 69 | 76 65 72 2c 20 73 65 72 |disk dri|ver, ser|
|000027c0| 69 61 6c 20 64 72 69 76 | 65 72 2c 20 65 74 63 2e |ial driv|er, etc.|
|000027d0| 29 2e 20 46 75 74 75 72 | 65 20 6d 61 63 68 69 6e |). Futur|e machin|
|000027e0| 65 73 20 6d 61 79 20 69 | 6e 63 6c 75 64 65 20 61 |es may i|nclude a|
|000027f0| 20 6d 65 6d 6f 72 79 20 | 6d 61 6e 61 67 65 6d 65 | memory |manageme|
|00002800| 6e 74 20 75 6e 69 74 20 | 28 4d 4d 55 29 20 77 68 |nt unit |(MMU) wh|
|00002810| 69 63 68 20 6d 61 79 20 | 70 72 65 76 65 6e 74 20 |ich may |prevent |
|00002820| 61 63 63 65 73 73 20 74 | 6f 20 6d 65 6d 6f 72 79 |access t|o memory|
|00002830| 2d 6d 61 70 70 65 64 20 | 68 61 72 64 77 61 72 65 |-mapped |hardware|
|00002840| 2e 20 41 6c 73 6f 2c 20 | 74 68 65 73 65 20 6d 65 |. Also, |these me|
|00002850| 6d 6f 72 79 2d 6d 61 70 | 70 65 64 20 64 65 76 69 |mory-map|ped devi|
|00002860| 63 65 73 20 6d 61 79 20 | 6e 6f 74 20 62 65 20 70 |ces may |not be p|
|00002870| 72 65 73 65 6e 74 20 6f | 6e 20 66 75 74 75 72 65 |resent o|n future|
|00002880| 20 6d 61 63 68 69 6e 65 | 73 2e 20 54 68 65 20 61 | machine|s. The a|
|00002890| 64 64 72 65 73 73 65 73 | 20 6f 66 20 74 68 65 73 |ddresses| of thes|
|000028a0| 65 20 64 65 76 69 63 65 | 73 20 61 72 65 20 6c 69 |e device|s are li|
|000028b0| 6b 65 6c 79 20 74 6f 20 | 63 68 61 6e 67 65 2c 20 |kely to |change, |
|000028c0| 73 6f 20 69 66 20 79 6f | 75 20 6d 75 73 74 20 61 |so if yo|u must a|
|000028d0| 63 63 65 73 73 20 74 68 | 65 20 68 61 72 64 77 61 |ccess th|e hardwa|
|000028e0| 72 65 20 64 69 72 65 63 | 74 6c 79 2c 20 67 65 74 |re direc|tly, get|
|000028f0| 20 74 68 65 20 62 61 73 | 65 20 61 64 64 72 65 73 | the bas|e addres|
|00002900| 73 20 6f 66 20 74 68 65 | 20 64 65 76 69 63 65 20 |s of the| device |
|00002910| 66 72 6f 6d 20 74 68 65 | 20 61 70 70 72 6f 70 72 |from the| appropr|
|00002920| 69 61 74 65 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 |iate low|-memory |
|00002930| 67 6c 6f 62 61 6c 20 28 | 6f 62 74 61 69 6e 61 62 |global (|obtainab|
|00002940| 6c 65 20 66 72 6f 6d 20 | 69 6e 63 6c 75 64 65 73 |le from |includes|
|00002950| 20 61 6e 64 20 69 6e 74 | 65 72 66 61 63 65 20 66 | and int|erface f|
|00002960| 69 6c 65 73 29 3a 0d 09 | 64 65 76 69 63 65 09 09 |iles):..|device..|
|00002970| 67 6c 6f 62 61 6c 09 09 | 0d 09 56 49 41 09 09 24 |global..|..VIA..$|
|00002980| 31 44 34 0d 09 53 43 43 | 52 64 09 09 24 31 44 38 |1D4..SCC|Rd..$1D8|
|00002990| 0d 09 53 43 43 57 72 09 | 24 31 44 43 0d 09 49 57 |..SCCWr.|$1DC..IW|
|000029a0| 4d 09 09 24 31 45 30 0d | 44 6f 20 79 6f 75 20 61 |M..$1E0.|Do you a|
|000029b0| 73 73 75 6d 65 20 74 68 | 65 20 6c 6f 63 61 74 69 |ssume th|e locati|
|000029c0| 6f 6e 20 6f 72 20 73 69 | 7a 65 20 6f 66 20 74 68 |on or si|ze of th|
|000029d0| 65 20 73 63 72 65 65 6e | 3f 0d 54 68 65 20 6c 6f |e screen|?.The lo|
|000029e0| 63 61 74 69 6f 6e 2c 20 | 73 69 7a 65 2c 20 61 6e |cation, |size, an|
|000029f0| 64 20 62 69 74 20 64 65 | 70 74 68 20 6f 66 20 74 |d bit de|pth of t|
|00002a00| 68 65 20 73 63 72 65 65 | 6e 20 69 73 20 64 69 66 |he scree|n is dif|
|00002a10| 66 65 72 65 6e 74 20 69 | 6e 20 76 61 72 69 6f 75 |ferent i|n variou|
|00002a20| 73 20 6d 61 63 68 69 6e | 65 73 2e 20 59 6f 75 20 |s machin|es. You |
|00002a30| 63 61 6e 20 64 65 74 65 | 72 6d 69 6e 65 20 69 74 |can dete|rmine it|
|00002a40| 73 20 6c 6f 63 61 74 69 | 6f 6e 20 61 6e 64 20 73 |s locati|on and s|
|00002a50| 69 7a 65 20 62 79 20 65 | 78 61 6d 69 6e 69 6e 67 |ize by e|xamining|
|00002a60| 20 74 68 65 20 51 75 69 | 63 6b 44 72 61 77 20 67 | the Qui|ckDraw g|
|00002a70| 6c 6f 62 61 6c 20 76 61 | 72 69 61 62 6c 65 20 73 |lobal va|riable s|
|00002a80| 63 72 65 65 6e 42 69 74 | 73 20 6f 6e 20 6d 61 63 |creenBit|s on mac|
|00002a90| 68 69 6e 65 73 20 77 69 | 74 68 6f 75 74 20 43 6f |hines wi|thout Co|
|00002aa0| 6c 6f 72 20 51 75 69 63 | 6b 44 72 61 77 2e 20 4f |lor Quic|kDraw. O|
|00002ab0| 6e 20 6d 61 63 68 69 6e | 65 73 20 77 69 74 68 20 |n machin|es with |
|00002ac0| 43 6f 6c 6f 72 20 51 75 | 69 63 6b 44 72 61 77 2c |Color Qu|ickDraw,|
|00002ad0| 20 74 68 65 20 64 65 76 | 69 63 65 20 6c 69 73 74 | the dev|ice list|
|00002ae0| 2c 20 64 65 73 63 72 69 | 62 65 64 20 69 6e 20 74 |, descri|bed in t|
|00002af0| 68 65 20 47 72 61 70 68 | 69 63 73 20 44 65 76 69 |he Graph|ics Devi|
|00002b00| 63 65 73 20 63 68 61 70 | 74 65 72 20 6f 66 20 49 |ces chap|ter of I|
|00002b10| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 2c |nside Ma|cintosh,|
|00002b20| 20 74 65 6c 6c 73 20 74 | 68 65 20 6c 6f 63 61 74 | tells t|he locat|
|00002b30| 69 6f 6e 20 61 6e 64 20 | 73 69 7a 65 20 61 6e 64 |ion and |size and|
|00002b40| 20 62 69 74 20 64 65 70 | 74 68 20 6f 66 20 65 61 | bit dep|th of ea|
|00002b50| 63 68 20 73 63 72 65 65 | 6e 2c 20 73 63 72 65 65 |ch scree|n, scree|
|00002b60| 6e 42 69 74 73 20 63 6f | 6e 74 61 69 6e 73 20 74 |nBits co|ntains t|
|00002b70| 68 65 20 6c 6f 63 61 74 | 69 6f 6e 20 61 6e 64 20 |he locat|ion and |
|00002b80| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 6d 61 69 6e |size of |the main|
|00002b90| 20 64 65 76 69 63 65 2c | 20 61 6e 64 20 47 72 61 | device,| and Gra|
|00002ba0| 79 52 67 6e 20 63 6f 6e | 74 61 69 6e 73 20 61 20 |yRgn con|tains a |
|00002bb0| 72 65 67 69 6f 6e 20 64 | 65 73 63 72 69 62 69 6e |region d|escribin|
|00002bc0| 67 20 74 68 65 20 73 68 | 61 70 65 20 61 6e 64 20 |g the sh|ape and |
|00002bd0| 73 69 7a 65 20 6f 66 20 | 74 68 65 20 64 65 73 6b |size of |the desk|
|00002be0| 74 6f 70 2e 0d 44 6f 65 | 73 20 79 6f 75 72 20 73 |top..Doe|s your s|
|00002bf0| 6f 66 74 77 61 72 65 20 | 66 61 69 6c 20 6f 6e 20 |oftware |fail on |
|00002c00| 73 6f 6d 65 20 4d 61 63 | 69 6e 74 6f 73 68 20 6d |some Mac|intosh m|
|00002c10| 6f 64 65 6c 73 20 6f 72 | 20 6f 6e 20 41 2f 55 58 |odels or| on A/UX|
|00002c20| 3f 0d 49 66 20 73 6f 2c | 20 79 6f 75 20 73 68 6f |?.If so,| you sho|
|00002c30| 75 6c 64 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 |uld dete|rmine th|
|00002c40| 65 20 72 65 61 73 6f 6e | 2e 20 46 61 69 6c 75 72 |e reason|. Failur|
|00002c50| 65 20 74 6f 20 72 75 6e | 20 6f 6e 20 61 6c 6c 20 |e to run| on all |
|00002c60| 76 65 72 73 69 6f 6e 73 | 20 6f 66 20 74 68 65 20 |versions| of the |
|00002c70| 4d 61 63 69 6e 74 6f 73 | 68 20 6d 61 79 20 69 6e |Macintos|h may in|
|00002c80| 64 69 63 61 74 65 20 70 | 72 6f 62 6c 65 6d 73 20 |dicate p|roblems |
|00002c90| 77 68 69 63 68 20 77 69 | 6c 6c 20 70 72 65 76 65 |which wi|ll preve|
|00002ca0| 6e 74 20 79 6f 75 72 20 | 73 6f 66 74 77 61 72 65 |nt your |software|
|00002cb0| 20 66 72 6f 6d 20 77 6f | 72 6b 69 6e 67 20 6f 6e | from wo|rking on|
|00002cc0| 20 66 75 74 75 72 65 20 | 6d 61 63 68 69 6e 65 73 | future |machines|
|00002cd0| 2e 20 46 61 69 6c 74 75 | 72 65 20 74 6f 20 72 75 |. Failtu|re to ru|
|00002ce0| 6e 20 6f 6e 20 41 2f 55 | 58 2c 20 41 70 70 6c 65 |n on A/U|X, Apple|
|00002cf0| d5 73 20 55 6e 69 78 20 | 66 6f 72 20 74 68 65 20 |.s Unix |for the |
|00002d00| 4d 61 63 69 6e 74 6f 73 | 68 2c 20 61 6c 73 6f 20 |Macintos|h, also |
|00002d10| 6d 61 79 20 69 6e 64 69 | 63 61 74 65 20 73 75 63 |may indi|cate suc|
|00002d20| 68 20 70 72 6f 62 6c 65 | 6d 73 2e 0d 44 6f 20 79 |h proble|ms..Do y|
|00002d30| 6f 75 20 63 68 61 6e 67 | 65 20 6d 61 73 74 65 72 |ou chang|e master|
|00002d40| 20 70 6f 69 6e 74 65 72 | 20 66 6c 61 67 73 20 6f | pointer| flags o|
|00002d50| 66 20 72 65 6c 6f 63 61 | 74 61 62 6c 65 20 62 6c |f reloca|table bl|
|00002d60| 6f 63 6b 73 20 64 69 72 | 65 63 74 6c 79 20 77 69 |ocks dir|ectly wi|
|00002d70| 74 68 20 42 53 45 54 20 | 6f 72 20 42 43 4c 52 20 |th BSET |or BCLR |
|00002d80| 69 6e 73 74 72 75 63 74 | 69 6f 6e 73 3f 0d 49 6e |instruct|ions?.In|
|00002d90| 20 74 68 65 20 66 75 74 | 75 72 65 20 61 6e 64 20 | the fut|ure and |
|00002da0| 6f 6e 20 41 2f 55 58 2c | 20 61 6c 6c 20 33 32 20 |on A/UX,| all 32 |
|00002db0| 62 69 74 73 20 6f 66 20 | 61 20 6d 61 73 74 65 72 |bits of |a master|
|00002dc0| 20 70 6f 69 6e 74 65 72 | 20 6d 61 79 20 62 65 20 | pointer| may be |
|00002dd0| 75 73 65 64 2c 20 77 69 | 74 68 20 74 68 65 20 66 |used, wi|th the f|
|00002de0| 6c 61 67 73 20 62 79 74 | 65 20 6d 6f 76 65 64 20 |lags byt|e moved |
|00002df0| 65 6c 73 65 77 68 65 72 | 65 2e 20 55 73 65 20 74 |elsewher|e. Use t|
|00002e00| 68 65 20 4d 65 6d 6f 72 | 79 20 4d 61 6e 61 67 65 |he Memor|y Manage|
|00002e10| 72 20 63 61 6c 6c 73 20 | 48 50 75 72 67 65 2c 20 |r calls |HPurge, |
|00002e20| 48 4e 6f 50 75 72 67 65 | 2c 20 48 4c 6f 63 6b 2c |HNoPurge|, HLock,|
|00002e30| 20 48 55 6e 6c 6f 63 6b | 2c 20 48 53 65 74 52 42 | HUnlock|, HSetRB|
|00002e40| 69 74 2c 20 48 43 6c 72 | 52 42 69 74 2c 20 48 47 |it, HClr|RBit, HG|
|00002e50| 65 74 53 74 61 74 65 2c | 20 61 6e 64 20 48 53 65 |etState,| and HSe|
|00002e60| 74 53 74 61 74 65 20 74 | 6f 20 6d 61 6e 69 70 75 |tState t|o manipu|
|00002e70| 6c 61 74 65 20 74 68 65 | 20 6d 61 73 74 65 72 20 |late the| master |
|00002e80| 70 6f 69 6e 74 65 72 20 | 66 6c 61 67 73 2e 20 28 |pointer |flags. (|
|00002e90| 53 65 65 20 74 68 65 20 | 4d 65 6d 6f 72 79 20 4d |See the |Memory M|
|00002ea0| 61 6e 61 67 65 72 20 63 | 68 61 70 74 65 72 20 6f |anager c|hapter o|
|00002eb0| 66 20 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |f Inside| Macinto|
|00002ec0| 73 68 20 56 6f 6c 75 6d | 65 20 49 56 20 66 6f 72 |sh Volum|e IV for|
|00002ed0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 6f 6e 20 | informa|tion on |
|00002ee0| 74 68 65 73 65 20 63 61 | 6c 6c 73 2e 29 0d 44 6f |these ca|lls.).Do|
|00002ef0| 20 79 6f 75 20 63 68 65 | 63 6b 20 66 6f 72 20 31 | you che|ck for 1|
|00002f00| 32 38 4b 2c 20 35 31 32 | 4b 2c 20 61 6e 64 20 31 |28K, 512|K, and 1|
|00002f10| 4d 20 52 41 4d 20 73 69 | 7a 65 73 3f 0d 59 6f 75 |M RAM si|zes?.You|
|00002f20| 20 73 68 6f 75 6c 64 20 | 62 65 20 66 6c 65 78 69 | should |be flexi|
|00002f30| 62 6c 65 20 65 6e 6f 75 | 67 68 20 74 6f 20 61 6c |ble enou|gh to al|
|00002f40| 6c 6f 77 20 66 6f 72 20 | 6e 6f 6e 2d 73 74 61 6e |low for |non-stan|
|00002f50| 64 61 72 64 20 6d 65 6d | 6f 72 79 20 73 69 7a 65 |dard mem|ory size|
|00002f60| 73 2e 20 54 68 69 73 20 | 77 69 6c 6c 20 61 6c 6c |s. This |will all|
|00002f70| 6f 77 20 79 6f 75 72 20 | 73 6f 66 74 77 61 72 65 |ow your |software|
|00002f80| 20 74 6f 20 77 6f 72 6b | 20 69 6e 20 65 6e 76 69 | to work| in envi|
|00002f90| 72 6f 6e 6d 65 6e 74 73 | 20 6c 69 6b 65 20 4d 75 |ronments| like Mu|
|00002fa0| 6c 74 69 46 69 6e 64 65 | 72 2e 0d 49 73 20 79 6f |ltiFinde|r..Is yo|
|00002fb0| 75 72 20 73 6f 66 74 77 | 61 72 65 20 69 6e 63 6f |ur softw|are inco|
|00002fc0| 6d 70 61 74 69 62 6c 65 | 20 77 69 74 68 20 61 20 |mpatible| with a |
|00002fd0| 74 68 69 72 64 2d 70 61 | 72 74 79 20 76 65 6e 64 |third-pa|rty vend|
|00002fe0| 6f 72 d5 73 20 68 61 72 | 64 77 61 72 65 3f 0d 49 |or.s har|dware?.I|
|00002ff0| 66 20 73 6f 2c 20 74 68 | 65 20 69 6e 63 6f 6d 70 |f so, th|e incomp|
|00003000| 61 74 69 62 69 6c 69 74 | 79 20 6d 61 79 20 70 72 |atibilit|y may pr|
|00003010| 65 76 65 6e 74 20 79 6f | 75 72 20 73 6f 66 74 77 |event yo|ur softw|
|00003020| 61 72 65 20 66 72 6f 6d | 20 77 6f 72 6b 69 6e 67 |are from| working|
|00003030| 20 6f 6e 20 66 75 74 75 | 72 65 20 6d 61 63 68 69 | on futu|re machi|
|00003040| 6e 65 73 2e 20 59 6f 75 | 20 73 68 6f 75 6c 64 20 |nes. You| should |
|00003050| 72 65 73 65 61 72 63 68 | 20 74 68 65 20 69 6e 63 |research| the inc|
|00003060| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 61 6e 64 |ompatibi|lity and|
|00003070| 20 74 72 79 20 74 6f 20 | 64 65 74 65 72 6d 69 6e | try to |determin|
|00003080| 65 20 61 20 73 6f 6c 75 | 74 69 6f 6e 2e 0d 44 6f |e a solu|tion..Do|
|00003090| 20 79 6f 75 20 72 65 6c | 79 20 6f 6e 20 73 79 73 | you rel|y on sys|
|000030a0| 74 65 6d 20 72 65 73 6f | 75 72 63 65 73 20 62 65 |tem reso|urces be|
|000030b0| 69 6e 67 20 69 6e 20 52 | 41 4d 3f 0d 4f 6e 20 6d |ing in R|AM?.On m|
|000030c0| 6f 73 74 20 6f 66 20 6f | 75 72 20 73 79 73 74 65 |ost of o|ur syste|
|000030d0| 6d 73 2c 20 73 6f 6d 65 | 20 73 79 73 74 65 6d 20 |ms, some| system |
|000030e0| 72 65 73 6f 75 72 63 65 | 73 20 61 72 65 20 69 6e |resource|s are in|
|000030f0| 20 52 4f 4d 2e 20 59 6f | 75 20 73 68 6f 75 6c 64 | ROM. Yo|u should|
|00003100| 20 6e 6f 74 20 61 73 73 | 75 6d 65 2c 20 66 6f 72 | not ass|ume, for|
|00003110| 20 65 78 61 6d 70 6c 65 | 2c 20 74 68 61 74 20 79 | example|, that y|
|00003120| 6f 75 20 63 61 6e 20 72 | 65 67 61 69 6e 20 52 41 |ou can r|egain RA|
|00003130| 4d 20 73 70 61 63 65 20 | 62 79 20 72 65 6c 65 61 |M space |by relea|
|00003140| 73 69 6e 67 20 73 79 73 | 74 65 6d 20 72 65 73 6f |sing sys|tem reso|
|00003150| 75 72 63 65 73 2e 0d 44 | 6f 65 73 20 79 6f 75 72 |urces..D|oes your|
|00003160| 20 73 6f 66 74 77 61 72 | 65 20 68 61 76 65 20 74 | softwar|e have t|
|00003170| 69 6d 69 6e 67 2d 73 65 | 6e 73 69 74 69 76 65 20 |iming-se|nsitive |
|00003180| 63 6f 64 65 3f 0d 56 61 | 72 69 6f 75 73 20 4d 61 |code?.Va|rious Ma|
|00003190| 63 69 6e 74 6f 73 68 65 | 73 20 72 75 6e 20 61 74 |cintoshe|s run at|
|000031a0| 20 64 69 66 66 65 72 65 | 6e 74 20 63 6c 6f 63 6b | differe|nt clock|
|000031b0| 20 73 70 65 65 64 73 2c | 20 73 6f 20 74 69 6d 69 | speeds,| so timi|
|000031c0| 6e 67 20 6c 6f 6f 70 73 | 20 77 69 6c 6c 20 62 65 |ng loops| will be|
|000031d0| 20 69 6e 76 61 6c 69 64 | 2e 20 59 6f 75 20 63 61 | invalid|. You ca|
|000031e0| 6e 20 75 73 65 20 74 68 | 65 20 74 72 61 70 20 63 |n use th|e trap c|
|000031f0| 61 6c 6c 20 44 65 6c 61 | 79 20 66 6f 72 20 74 69 |all Dela|y for ti|
|00003200| 6d 69 6e 67 2c 20 6f 72 | 20 79 6f 75 20 63 61 6e |ming, or| you can|
|00003210| 20 65 78 61 6d 69 6e 65 | 20 74 68 65 20 67 6c 6f | examine| the glo|
|00003220| 62 61 6c 20 76 61 72 69 | 61 62 6c 65 20 54 69 63 |bal vari|able Tic|
|00003230| 6b 73 2e 0d 44 6f 20 79 | 6f 75 20 68 61 76 65 20 |ks..Do y|ou have |
|00003240| 63 6f 64 65 20 77 68 69 | 63 68 20 77 72 69 74 65 |code whi|ch write|
|00003250| 73 20 74 6f 20 61 64 64 | 72 65 73 73 65 73 20 77 |s to add|resses w|
|00003260| 69 74 68 69 6e 20 74 68 | 65 20 63 6f 64 65 20 69 |ithin th|e code i|
|00003270| 74 73 65 6c 66 3f 0d 41 | 20 6d 65 6d 6f 72 79 20 |tself?.A| memory |
|00003280| 6d 61 6e 61 67 65 6d 65 | 6e 74 20 75 6e 69 74 20 |manageme|nt unit |
|00003290| 28 4d 4d 55 29 20 6d 61 | 79 20 6f 6e 65 20 64 61 |(MMU) ma|y one da|
|000032a0| 79 20 70 72 65 76 65 6e | 74 20 63 6f 64 65 20 66 |y preven|t code f|
|000032b0| 72 6f 6d 20 77 72 69 74 | 69 6e 67 20 74 6f 20 61 |rom writ|ing to a|
|000032c0| 64 64 72 65 73 73 65 73 | 20 77 69 74 68 69 6e 20 |ddresses| within |
|000032d0| 63 6f 64 65 20 6d 65 6d | 6f 72 79 2e 20 41 6c 73 |code mem|ory. Als|
|000032e0| 6f 2c 20 73 6f 6d 65 20 | 6d 69 63 72 6f 70 72 6f |o, some |micropro|
|000032f0| 63 65 73 73 6f 72 73 20 | 69 6e 20 74 68 65 20 36 |cessors |in the 6|
|00003300| 38 30 30 30 20 66 61 6d | 69 6c 79 20 63 61 63 68 |8000 fam|ily cach|
|00003310| 65 20 63 6f 64 65 20 61 | 73 20 69 74 d5 73 20 65 |e code a|s it.s e|
|00003320| 6e 63 6f 75 6e 74 65 72 | 65 64 2e 20 59 6f 75 72 |ncounter|ed. Your|
|00003330| 20 64 61 74 61 20 62 6c | 6f 63 6b 73 20 73 68 6f | data bl|ocks sho|
|00003340| 75 6c 64 20 62 65 20 61 | 6c 6c 6f 63 61 74 65 64 |uld be a|llocated|
|00003350| 20 6f 6e 20 74 68 65 20 | 73 74 61 63 6b 20 6f 72 | on the |stack or|
|00003360| 20 69 6e 20 68 65 61 70 | 20 62 6c 6f 63 6b 73 20 | in heap| blocks |
|00003370| 73 65 70 61 72 61 74 65 | 20 66 72 6f 6d 20 74 68 |separate| from th|
|00003380| 65 20 63 6f 64 65 2c 20 | 61 6e 64 20 79 6f 75 72 |e code, |and your|
|00003390| 20 63 6f 64 65 20 73 68 | 6f 75 6c 64 20 6e 6f 74 | code sh|ould not|
|000033a0| 20 6d 6f 64 69 66 79 20 | 69 74 73 65 6c 66 2e 0d | modify |itself..|
|000033b0| 44 6f 20 79 6f 75 20 72 | 65 6c 79 20 6f 6e 20 6b |Do you r|ely on k|
|000033c0| 65 79 62 6f 61 72 64 20 | 6b 65 79 20 63 6f 64 65 |eyboard |key code|
|000033d0| 73 20 72 61 74 68 65 72 | 20 74 68 61 6e 20 41 53 |s rather| than AS|
|000033e0| 43 49 49 20 63 6f 64 65 | 73 3f 0d 54 68 65 20 76 |CII code|s?.The v|
|000033f0| 61 72 69 6f 75 73 20 6b | 65 79 62 6f 61 72 64 73 |arious k|eyboards|
|00003400| 20 61 72 65 20 73 6c 69 | 67 68 74 6c 79 20 64 69 | are sli|ghtly di|
|00003410| 66 66 65 72 65 6e 74 3b | 20 66 75 74 75 72 65 20 |fferent;| future |
|00003420| 6b 65 79 62 6f 61 72 64 | 73 20 6d 61 79 20 62 65 |keyboard|s may be|
|00003430| 20 64 69 66 66 65 72 65 | 6e 74 20 66 72 6f 6d 20 | differe|nt from |
|00003440| 74 68 65 6d 2e 20 46 6f | 72 20 74 65 78 74 75 61 |them. Fo|r textua|
|00003450| 6c 20 69 6e 70 75 74 2c | 20 79 6f 75 20 73 68 6f |l input,| you sho|
|00003460| 75 6c 64 20 72 65 61 64 | 20 41 53 43 49 49 20 63 |uld read| ASCII c|
|00003470| 6f 64 65 73 20 72 61 74 | 68 65 72 20 74 68 61 6e |odes rat|her than|
|00003480| 20 6b 65 79 20 63 6f 64 | 65 73 2e 0d 44 6f 20 79 | key cod|es..Do y|
|00003490| 6f 75 20 72 65 6c 79 20 | 6f 6e 20 74 68 65 20 66 |ou rely |on the f|
|000034a0| 6f 72 6d 61 74 20 6f 66 | 20 70 61 63 6b 65 64 20 |ormat of| packed |
|000034b0| 61 64 64 72 65 73 73 65 | 73 20 69 6e 20 74 68 65 |addresse|s in the|
|000034c0| 20 74 72 61 70 20 64 69 | 73 70 61 74 63 68 20 74 | trap di|spatch t|
|000034d0| 61 62 6c 65 3f 0d 54 68 | 65 20 74 72 61 70 20 64 |able?.Th|e trap d|
|000034e0| 69 73 70 61 74 63 68 20 | 74 61 62 6c 65 20 69 73 |ispatch |table is|
|000034f0| 20 64 69 66 66 65 72 65 | 6e 74 20 6f 6e 20 76 61 | differe|nt on va|
|00003500| 72 69 6f 75 73 20 4d 61 | 63 69 6e 74 6f 73 68 65 |rious Ma|cintoshe|
|00003510| 73 2e 20 54 68 65 72 65 | d5 73 20 6e 6f 20 67 75 |s. There|.s no gu|
|00003520| 61 72 61 6e 74 65 65 20 | 6f 66 20 74 68 65 20 74 |arantee |of the t|
|00003530| 72 61 70 20 74 61 62 6c | 65 d5 73 20 66 6f 72 6d |rap tabl|e.s form|
|00003540| 61 74 20 69 6e 20 74 68 | 65 20 66 75 74 75 72 65 |at in th|e future|
|00003550| 2e 20 59 6f 75 20 73 68 | 6f 75 6c 64 20 75 73 65 |. You sh|ould use|
|00003560| 20 74 68 65 20 73 79 73 | 74 65 6d 20 63 61 6c 6c | the sys|tem call|
|00003570| 73 20 47 65 74 54 72 61 | 70 41 64 64 72 65 73 73 |s GetTra|pAddress|
|00003580| 20 61 6e 64 20 53 65 74 | 54 72 61 70 41 64 64 72 | and Set|TrapAddr|
|00003590| 65 73 73 20 74 6f 20 6d | 61 6e 69 70 75 6c 61 74 |ess to m|anipulat|
|000035a0| 65 20 74 68 65 20 74 72 | 61 70 20 64 69 73 70 61 |e the tr|ap dispa|
|000035b0| 74 63 68 20 74 61 62 6c | 65 2e 0d 44 6f 20 79 6f |tch tabl|e..Do yo|
|000035c0| 75 20 75 73 65 20 74 68 | 65 20 52 65 73 6f 75 72 |u use th|e Resour|
|000035d0| 63 65 20 4d 61 6e 61 67 | 65 72 20 63 61 6c 6c 73 |ce Manag|er calls|
|000035e0| 20 41 64 64 52 65 66 65 | 72 65 6e 63 65 20 6f 72 | AddRefe|rence or|
|000035f0| 20 52 6d 76 65 52 65 66 | 65 72 65 6e 63 65 3f 0d | RmveRef|erence?.|
|00003600| 54 68 65 73 65 20 63 61 | 6c 6c 73 20 68 61 76 65 |These ca|lls have|
|00003610| 20 62 65 65 6e 20 72 65 | 6d 6f 76 65 64 20 66 72 | been re|moved fr|
|00003620| 6f 6d 20 74 68 65 20 31 | 32 38 4b 20 52 4f 4d 2e |om the 1|28K ROM.|
|00003630| 20 54 68 65 79 20 61 72 | 65 20 6e 6f 20 6c 6f 6e | They ar|e no lon|
|00003640| 67 65 72 20 73 75 70 70 | 6f 72 74 65 64 2e 0d 44 |ger supp|orted..D|
|00003650| 6f 20 79 6f 75 20 73 74 | 6f 72 65 20 69 6e 66 6f |o you st|ore info|
|00003660| 72 6d 61 74 69 6f 6e 20 | 69 6e 20 74 68 65 20 61 |rmation |in the a|
|00003670| 70 70 6c 69 63 61 74 69 | 6f 6e 20 70 61 72 61 6d |pplicati|on param|
|00003680| 65 74 65 72 73 20 61 72 | 65 61 20 28 74 68 65 20 |eters ar|ea (the |
|00003690| 33 32 20 62 79 74 65 73 | 20 62 65 74 77 65 65 6e |32 bytes| between|
|000036a0| 20 74 68 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e | the app|lication|
|000036b0| 20 61 6e 64 20 75 6e 69 | 74 20 67 6c 6f 62 61 6c | and uni|t global|
|000036c0| 73 20 61 6e 64 20 74 68 | 65 20 6a 75 6d 70 20 74 |s and th|e jump t|
|000036d0| 61 62 6c 65 29 3f 0d 54 | 68 69 73 20 73 70 61 63 |able)?.T|his spac|
|000036e0| 65 20 69 73 20 72 65 73 | 65 72 76 65 64 20 66 6f |e is res|erved fo|
|000036f0| 72 20 75 73 65 20 62 79 | 20 41 70 70 6c 65 2e 0d |r use by| Apple..|
|00003700| 44 6f 20 79 6f 75 20 64 | 65 70 65 6e 64 20 6f 6e |Do you d|epend on|
|00003710| 20 76 61 6c 75 65 73 20 | 69 6e 20 72 65 67 69 73 | values |in regis|
|00003720| 74 65 72 73 20 61 66 74 | 65 72 20 61 20 74 72 61 |ters aft|er a tra|
|00003730| 70 20 63 61 6c 6c 2c 20 | 6f 74 68 65 72 20 74 68 |p call, |other th|
|00003740| 61 6e 20 74 68 6f 73 65 | 20 64 6f 63 75 6d 65 6e |an those| documen|
|00003750| 74 65 64 20 69 6e 20 49 | 6e 73 69 64 65 20 4d 61 |ted in I|nside Ma|
|00003760| 63 69 6e 74 6f 73 68 3f | 0d 54 68 65 73 65 20 76 |cintosh?|.These v|
|00003770| 61 6c 75 65 73 20 61 72 | 65 6e d5 74 20 67 75 61 |alues ar|en.t gua|
|00003780| 72 61 6e 74 65 65 64 2e | 20 54 68 65 20 72 65 67 |ranteed.| The reg|
|00003790| 69 73 74 65 72 20 63 6f | 6e 76 65 6e 74 69 6f 6e |ister co|nvention|
|000037a0| 73 20 64 6f 63 75 6d 65 | 6e 74 65 64 20 69 6e 20 |s docume|nted in |
|000037b0| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|000037c0| 20 77 69 6c 6c 2c 20 6f | 66 20 63 6f 75 72 73 65 | will, o|f course|
|000037d0| 2c 20 62 65 20 73 75 70 | 70 6f 72 74 65 64 2e 20 |, be sup|ported. |
|000037e0| 4f 66 74 65 6e 2c 20 79 | 6f 75 20 6d 61 79 20 6e |Often, y|ou may n|
|000037f0| 6f 74 20 72 65 61 6c 69 | 7a 65 20 74 68 61 74 20 |ot reali|ze that |
|00003800| 79 6f 75 72 20 63 6f 64 | 65 20 69 73 20 64 65 70 |your cod|e is dep|
|00003810| 65 6e 64 69 6e 67 20 6f | 6e 20 74 68 65 73 65 20 |ending o|n these |
|00003820| 75 6e 64 6f 63 75 6d 65 | 6e 74 65 64 20 76 61 6c |undocume|nted val|
|00003830| 75 65 73 2c 20 73 6f 20 | 63 68 65 63 6b 20 79 6f |ues, so |check yo|
|00003840| 75 72 20 72 65 67 69 73 | 74 65 72 20 75 73 61 67 |ur regis|ter usag|
|00003850| 65 20 63 61 72 65 66 75 | 6c 6c 79 2e 0d 44 6f 20 |e carefu|lly..Do |
|00003860| 79 6f 75 20 75 73 65 20 | 74 68 65 20 49 4d 4d 45 |you use |the IMME|
|00003870| 44 20 62 69 74 20 69 6e | 20 46 69 6c 65 20 4d 61 |D bit in| File Ma|
|00003880| 6e 61 67 65 72 20 63 61 | 6c 6c 73 3f 0d 54 68 69 |nager ca|lls?.Thi|
|00003890| 73 20 62 69 74 2c 20 77 | 68 69 63 68 20 77 61 73 |s bit, w|hich was|
|000038a0| 20 64 6f 63 75 6d 65 6e | 74 65 64 20 69 6e 20 65 | documen|ted in e|
|000038b0| 61 72 6c 79 20 76 65 72 | 73 69 6f 6e 73 20 6f 66 |arly ver|sions of|
|000038c0| 20 49 6e 73 69 64 65 20 | 4d 61 63 69 6e 74 6f 73 | Inside |Macintos|
|000038d0| 68 20 61 73 20 61 20 73 | 70 65 63 69 61 6c 20 66 |h as a s|pecial f|
|000038e0| 6f 72 6d 20 6f 66 20 46 | 69 6c 65 20 4d 61 6e 61 |orm of F|ile Mana|
|000038f0| 67 65 72 20 63 61 6c 6c | 2c 20 61 63 74 75 61 6c |ger call|, actual|
|00003900| 6c 79 20 64 69 64 20 6e | 6f 74 68 69 6e 67 20 66 |ly did n|othing f|
|00003910| 6f 72 20 46 69 6c 65 20 | 4d 61 6e 61 67 65 72 20 |or File |Manager |
|00003920| 63 61 6c 6c 73 2c 20 61 | 6e 64 20 77 61 73 20 75 |calls, a|nd was u|
|00003930| 73 65 64 20 6f 6e 6c 79 | 20 66 6f 72 20 44 65 76 |sed only| for Dev|
|00003940| 69 63 65 20 4d 61 6e 61 | 67 65 72 20 63 61 6c 6c |ice Mana|ger call|
|00003950| 73 2e 20 57 69 74 68 20 | 74 68 65 20 61 64 76 65 |s. With |the adve|
|00003960| 6e 74 20 6f 66 20 74 68 | 65 20 48 69 65 72 61 72 |nt of th|e Hierar|
|00003970| 63 68 69 63 61 6c 20 46 | 69 6c 65 20 53 79 73 74 |chical F|ile Syst|
|00003980| 65 6d 2c 20 74 68 69 73 | 20 62 69 74 20 69 6e 64 |em, this| bit ind|
|00003990| 69 63 61 74 65 73 20 74 | 68 61 74 20 74 68 65 20 |icates t|hat the |
|000039a0| 63 61 6c 6c 20 68 61 73 | 20 61 20 70 61 72 61 6d |call has| a param|
|000039b0| 65 74 65 72 20 62 6c 6f | 63 6b 20 77 69 74 68 20 |eter blo|ck with |
|000039c0| 68 69 65 72 61 72 63 68 | 69 63 61 6c 20 69 6e 66 |hierarch|ical inf|
|000039d0| 6f 72 6d 61 74 69 6f 6e | 2e 0d 44 6f 20 79 6f 75 |ormation|..Do you|
|000039e0| 20 6d 61 6b 65 20 61 73 | 73 75 6d 70 74 69 6f 6e | make as|sumption|
|000039f0| 73 20 61 62 6f 75 74 20 | 74 68 65 20 6e 75 6d 62 |s about |the numb|
|00003a00| 65 72 20 61 6e 64 20 73 | 69 7a 65 20 6f 66 20 64 |er and s|ize of d|
|00003a10| 69 73 6b 20 64 72 69 76 | 65 73 3f 0d 54 68 65 72 |isk driv|es?.Ther|
|00003a20| 65 20 61 72 65 20 6e 6f | 77 20 66 69 76 65 20 73 |e are no|w five s|
|00003a30| 69 7a 65 73 20 6f 66 20 | 41 70 70 6c 65 20 64 69 |izes of |Apple di|
|00003a40| 73 6b 73 20 66 6f 72 20 | 74 68 65 20 4d 61 63 69 |sks for |the Maci|
|00003a50| 6e 74 6f 73 68 20 28 34 | 30 30 4b 2c 20 38 30 30 |ntosh (4|00K, 800|
|00003a60| 4b 2c 20 61 6e 64 20 32 | 30 4d 2c 20 34 30 4d 2c |K, and 2|0M, 40M,|
|00003a70| 20 38 30 4d 29 2c 20 61 | 73 20 77 65 6c 6c 20 61 | 80M), a|s well a|
|00003a80| 73 20 6d 61 6e 79 20 6d | 6f 72 65 20 66 72 6f 6d |s many m|ore from|
|00003a90| 20 74 68 69 72 64 2d 70 | 61 72 74 79 20 76 65 6e | third-p|arty ven|
|00003aa0| 64 6f 72 73 2e 20 59 6f | 75 20 73 68 6f 75 6c 64 |dors. Yo|u should|
|00003ab0| 20 75 73 65 20 53 74 61 | 6e 64 61 72 64 20 46 69 | use Sta|ndard Fi|
|00003ac0| 6c 65 20 61 6e 64 20 46 | 69 6c 65 20 4d 61 6e 61 |le and F|ile Mana|
|00003ad0| 67 65 72 20 63 61 6c 6c | 73 20 74 6f 20 64 65 74 |ger call|s to det|
|00003ae0| 65 72 6d 69 6e 65 20 74 | 68 65 20 6e 75 6d 62 65 |ermine t|he numbe|
|00003af0| 72 20 61 6e 64 20 73 69 | 7a 65 20 6f 66 20 64 69 |r and si|ze of di|
|00003b00| 73 6b 20 64 72 69 76 65 | 73 2e 0d 44 6f 20 79 6f |sk drive|s..Do yo|
|00003b10| 75 20 64 65 70 65 6e 64 | 20 6f 6e 20 61 6c 74 65 |u depend| on alte|
|00003b20| 72 6e 61 74 65 20 28 70 | 61 67 65 20 32 29 20 73 |rnate (p|age 2) s|
|00003b30| 6f 75 6e 64 20 6f 72 20 | 76 69 64 65 6f 20 62 75 |ound or |video bu|
|00003b40| 66 66 65 72 73 3f 0d 53 | 6f 6d 65 20 4d 61 63 69 |ffers?.S|ome Maci|
|00003b50| 6e 74 6f 73 68 65 73 20 | 64 6f 20 6e 6f 74 20 73 |ntoshes |do not s|
|00003b60| 75 70 70 6f 72 74 20 61 | 6c 74 65 72 6e 61 74 65 |upport a|lternate|
|00003b70| 20 73 6f 75 6e 64 20 61 | 6e 64 20 76 69 64 65 6f | sound a|nd video|
|00003b80| 20 62 75 66 66 65 72 73 | 2e 0d 44 6f 20 79 6f 75 | buffers|..Do you|
|00003b90| 20 70 72 69 6e 74 20 62 | 79 20 73 65 6e 64 69 6e | print b|y sendin|
|00003ba0| 67 20 41 53 43 49 49 20 | 64 69 72 65 63 74 6c 79 |g ASCII |directly|
|00003bb0| 20 74 6f 20 74 68 65 20 | 70 72 69 6e 74 65 72 20 | to the |printer |
|00003bc0| 64 72 69 76 65 72 3f 0d | 54 6f 20 72 65 74 61 69 |driver?.|To retai|
|00003bd0| 6e 20 63 6f 6d 70 61 74 | 69 62 69 6c 69 74 79 20 |n compat|ibility |
|00003be0| 77 69 74 68 20 62 6f 74 | 68 20 6c 6f 63 61 6c 6c |with bot|h locall|
|00003bf0| 79 2d 63 6f 6e 6e 65 63 | 74 65 64 20 61 6e 64 20 |y-connec|ted and |
|00003c00| 41 70 70 6c 65 54 61 6c | 6b 2d 63 6f 6e 6e 65 63 |AppleTal|k-connec|
|00003c10| 74 65 64 20 70 72 69 6e | 74 65 72 73 2c 20 79 6f |ted prin|ters, yo|
|00003c20| 75 20 73 68 6f 75 6c 64 | 20 70 72 69 6e 74 20 75 |u should| print u|
|00003c30| 73 69 6e 67 20 50 72 69 | 6e 74 69 6e 67 20 4d 61 |sing Pri|nting Ma|
|00003c40| 6e 61 67 65 72 72 2c 20 | 61 73 20 64 6f 63 75 6d |nagerr, |as docum|
|00003c50| 65 6e 74 65 64 20 69 6e | 20 49 6e 73 69 64 65 20 |ented in| Inside |
|00003c60| 4d 61 63 69 6e 74 6f 73 | 68 2e 0d 44 6f 65 73 20 |Macintos|h..Does |
|00003c70| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00003c80| 20 66 61 69 6c 20 77 68 | 65 6e 20 69 74 d5 73 20 | fail wh|en it.s |
|00003c90| 74 68 65 20 73 74 61 72 | 74 75 70 20 61 70 70 6c |the star|tup appl|
|00003ca0| 69 63 61 74 69 6f 6e 20 | 28 69 2e 65 2e 2c 20 77 |ication |(i.e., w|
|00003cb0| 69 74 68 6f 75 74 20 74 | 68 65 20 46 69 6e 64 65 |ithout t|he Finde|
|00003cc0| 72 20 62 65 69 6e 67 20 | 72 75 6e 20 66 69 72 73 |r being |run firs|
|00003cd0| 74 29 3f 0d 49 66 20 73 | 6f 2c 20 79 6f 75 d5 72 |t)?.If s|o, you.r|
|00003ce0| 65 20 70 72 6f 62 61 62 | 6c 79 20 6e 6f 74 20 69 |e probab|ly not i|
|00003cf0| 6e 69 74 69 61 6c 69 7a | 69 6e 67 20 61 20 76 61 |nitializ|ing a va|
|00003d00| 72 69 61 62 6c 65 2e 20 | 49 66 20 79 6f 75 72 20 |riable. |If your |
|00003d10| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 64 6f 65 73 |applicat|ion does|
|00003d20| 20 6e 6f 74 20 77 6f 72 | 6b 20 61 73 20 74 68 65 | not wor|k as the|
|00003d30| 20 73 74 61 72 74 75 70 | 20 61 70 70 6c 69 63 61 | startup| applica|
|00003d40| 74 69 6f 6e 2c 20 79 6f | 75 20 73 68 6f 75 6c 64 |tion, yo|u should|
|00003d50| 20 64 65 74 65 72 6d 69 | 6e 65 20 77 68 79 20 61 | determi|ne why a|
|00003d60| 6e 64 20 66 69 78 20 74 | 68 65 20 70 72 6f 62 6c |nd fix t|he probl|
|00003d70| 65 6d 2c 20 73 69 6e 63 | 65 20 69 74 20 6d 61 79 |em, sinc|e it may|
|00003d80| 20 63 61 75 73 65 20 79 | 6f 75 72 20 61 70 70 6c | cause y|our appl|
|00003d90| 69 63 61 74 69 6f 6e 20 | 74 6f 20 66 61 69 6c 20 |ication |to fail |
|00003da0| 69 6e 20 74 68 65 20 66 | 75 74 75 72 65 2e 0d 43 |in the f|uture..C|
|00003db0| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 3a 20 57 68 |ompatibi|lity: Wh|
|00003dc0| 79 20 26 20 48 6f 77 0d | 4f 76 65 72 76 69 65 77 |y & How.|Overview|
|00003dd0| 09 4d 2e 4f 56 2e 43 6f | 6d 70 61 74 69 62 69 6c |.M.OV.Co|mpatibil|
|00003de0| 69 74 79 57 68 79 0d 52 | 65 76 69 73 65 64 20 62 |ityWhy.R|evised b|
|00003df0| 79 3a 09 09 4d 61 72 63 | 68 20 31 39 38 38 0d 57 |y:..Marc|h 1988.W|
|00003e00| 72 69 74 74 65 6e 20 62 | 79 3a 09 42 6f 62 20 4a |ritten b|y:.Bob J|
|00003e10| 6f 68 6e 73 6f 6e 09 46 | 65 62 72 75 61 72 79 20 |ohnson.F|ebruary |
|00003e20| 31 39 38 37 0d 57 68 69 | 6c 65 20 63 72 65 61 74 |1987.Whi|le creat|
|00003e30| 69 6e 67 20 6f 72 20 72 | 65 76 69 73 69 6e 67 20 |ing or r|evising |
|00003e40| 61 6e 79 20 70 72 6f 67 | 72 61 6d 20 66 6f 72 20 |any prog|ram for |
|00003e50| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 2c 20 79 |the Maci|ntosh, y|
|00003e60| 6f 75 20 73 68 6f 75 6c | 64 20 62 65 20 61 77 61 |ou shoul|d be awa|
|00003e70| 72 65 20 6f 66 20 74 68 | 65 20 6d 6f 73 74 20 63 |re of th|e most c|
|00003e80| 6f 6d 6d 6f 6e 20 72 65 | 61 73 6f 6e 73 20 77 68 |ommon re|asons wh|
|00003e90| 79 20 70 72 6f 67 72 61 | 6d 73 20 66 61 69 6c 20 |y progra|ms fail |
|00003ea0| 6f 6e 20 76 61 72 69 6f | 75 73 20 76 65 72 73 69 |on vario|us versi|
|00003eb0| 6f 6e 73 20 6f 66 20 74 | 68 65 20 4d 61 63 69 6e |ons of t|he Macin|
|00003ec0| 74 6f 73 68 2e 20 54 68 | 69 73 20 6e 6f 74 65 20 |tosh. Th|is note |
|00003ed0| 77 69 6c 6c 20 64 65 74 | 61 69 6c 20 73 6f 6d 65 |will det|ail some|
|00003ee0| 20 63 6f 6d 6d 6f 6e 20 | 66 61 69 6c 75 72 65 20 | common |failure |
|00003ef0| 6d 6f 64 65 73 2c 20 77 | 68 79 20 74 68 65 79 20 |modes, w|hy they |
|00003f00| 6f 63 63 75 72 2c 20 61 | 6e 64 20 68 6f 77 20 74 |occur, a|nd how t|
|00003f10| 6f 20 61 76 6f 69 64 20 | 74 68 65 6d 2e 0d 57 65 |o avoid |them..We|
|00003f20| d5 76 65 20 74 72 69 65 | 64 20 74 6f 20 65 78 70 |.ve trie|d to exp|
|00003f30| 6c 61 69 6e 20 74 68 65 | 20 69 73 73 75 65 73 20 |lain the| issues |
|00003f40| 69 6e 20 64 65 70 74 68 | 2c 20 62 75 74 20 72 65 |in depth|, but re|
|00003f50| 63 6f 67 6e 69 7a 65 20 | 74 68 61 74 20 6e 6f 74 |cognize |that not|
|00003f60| 20 65 76 65 72 79 6f 6e | 65 20 69 73 20 69 6e 74 | everyon|e is int|
|00003f70| 65 72 65 73 74 65 64 20 | 69 6e 20 65 76 65 72 79 |erested |in every|
|00003f80| 20 69 73 73 75 65 2e 20 | 46 6f 72 20 65 78 61 6d | issue. |For exam|
|00003f90| 70 6c 65 2c 20 69 66 20 | 79 6f 75 72 20 61 70 70 |ple, if |your app|
|00003fa0| 6c 69 63 61 74 69 6f 6e | 20 69 73 20 6e 6f 74 20 |lication| is not |
|00003fb0| 63 6f 70 79 20 70 72 6f | 74 65 63 74 65 64 2c 20 |copy pro|tected, |
|00003fc0| 79 6f 75 d5 72 65 20 70 | 72 6f 62 61 62 6c 79 20 |you.re p|robably |
|00003fd0| 6e 6f 74 20 76 65 72 79 | 20 69 6e 74 65 72 65 73 |not very| interes|
|00003fe0| 74 65 64 20 69 6e 20 74 | 68 65 20 73 65 63 74 69 |ted in t|he secti|
|00003ff0| 6f 6e 20 6f 6e 20 63 6f | 70 79 20 70 72 6f 74 65 |on on co|py prote|
|00004000| 63 74 69 6f 6e 2e 20 54 | 68 61 74 d5 73 20 77 68 |ction. T|hat.s wh|
|00004010| 79 20 77 65 d5 76 65 20 | 69 6e 63 6c 75 64 65 64 |y we.ve |included|
|00004020| 20 74 68 65 20 6f 75 74 | 6c 69 6e 65 20 66 6f 72 | the out|line for|
|00004030| 6d 20 6f 66 20 74 68 65 | 20 74 65 63 68 6e 69 63 |m of the| technic|
|00004040| 61 6c 20 6e 6f 74 65 2e | 20 54 68 65 20 66 69 72 |al note.| The fir|
|00004050| 73 74 20 74 77 6f 20 70 | 61 67 65 73 20 6f 75 74 |st two p|ages out|
|00004060| 6c 69 6e 65 20 74 68 65 | 20 70 72 6f 62 6c 65 6d |line the| problem|
|00004070| 73 20 61 6e 64 20 74 68 | 65 20 73 6f 6c 75 74 69 |s and th|e soluti|
|00004080| 6f 6e 73 20 74 68 61 74 | 20 61 72 65 20 64 65 74 |ons that| are det|
|00004090| 61 69 6c 65 64 20 6c 61 | 74 65 72 2e 20 46 65 65 |ailed la|ter. Fee|
|000040a0| 6c 20 66 72 65 65 20 74 | 6f 20 73 6b 69 70 20 61 |l free t|o skip a|
|000040b0| 72 6f 75 6e 64 20 61 74 | 20 77 69 6c 6c 2c 20 62 |round at| will, b|
|000040c0| 75 74 20 72 65 6d 65 6d | 62 65 72 20 74 68 61 74 |ut remem|ber that|
|000040d0| 20 77 65 d5 72 65 20 73 | 65 6e 64 69 6e 67 20 74 | we.re s|ending t|
|000040e0| 68 69 73 20 65 6e 6f 72 | 6d 6f 75 73 20 74 65 63 |his enor|mous tec|
|000040f0| 68 6e 69 63 61 6c 20 6e | 6f 74 65 20 62 65 63 61 |hnical n|ote beca|
|00004100| 75 73 65 20 74 68 65 20 | 73 75 67 67 65 73 74 69 |use the |suggesti|
|00004110| 6f 6e 73 20 69 74 20 70 | 72 6f 76 69 64 65 73 20 |ons it p|rovides |
|00004120| 6d 61 79 20 73 61 76 65 | 20 79 6f 75 20 68 61 73 |may save| you has|
|00004130| 74 79 20 63 6f 6d 70 61 | 74 69 62 69 6c 69 74 79 |ty compa|tibility|
|00004140| 20 72 65 76 69 73 69 6f | 6e 73 20 77 68 65 6e 20 | revisio|ns when |
|00004150| 77 65 20 61 6e 6e 6f 75 | 6e 63 65 20 61 20 6e 65 |we annou|nce a ne|
|00004160| 77 20 6d 61 63 68 69 6e | 65 2e 0d 57 65 20 6b 6e |w machin|e..We kn|
|00004170| 6f 77 20 69 74 d5 73 20 | 61 20 6c 6f 74 2c 20 61 |ow it.s |a lot, a|
|00004180| 6e 64 20 77 65 d5 72 65 | 20 68 65 72 65 20 74 6f |nd we.re| here to|
|00004190| 20 68 65 6c 70 20 79 6f | 75 20 69 66 20 79 6f 75 | help yo|u if you|
|000041a0| 20 6e 65 65 64 20 69 74 | 2e 20 4f 75 72 20 61 64 | need it|. Our ad|
|000041b0| 64 72 65 73 73 20 28 65 | 6c 65 63 74 72 6f 6e 69 |dress (e|lectroni|
|000041c0| 63 20 61 6e 64 20 70 68 | 79 73 69 63 61 6c 29 20 |c and ph|ysical) |
|000041d0| 69 73 20 6f 6e 20 70 61 | 67 65 20 74 77 6f d1 63 |is on pa|ge two.c|
|000041e0| 6f 6e 74 61 63 74 20 75 | 73 20 77 69 74 68 20 61 |ontact u|s with a|
|000041f0| 6e 79 20 71 75 65 73 74 | 69 6f 6e 73 d1 74 68 61 |ny quest|ions.tha|
|00004200| 74 d5 73 20 77 68 61 74 | 20 77 65 d5 72 65 20 68 |t.s what| we.re h|
|00004210| 65 72 65 20 66 6f 72 21 | 0d 43 6f 6d 70 61 74 69 |ere for!|.Compati|
|00004220| 62 69 6c 69 74 79 3a 20 | 74 68 65 20 6f 75 74 6c |bility: |the outl|
|00004230| 69 6e 65 0d 44 6f 6e d5 | 74 20 61 73 73 75 6d 65 |ine.Don.|t assume|
|00004240| 20 74 68 65 20 73 63 72 | 65 65 6e 20 69 73 20 61 | the scr|een is a|
|00004250| 20 66 69 78 65 64 20 73 | 69 7a 65 0d 54 6f 20 67 | fixed s|ize.To g|
|00004260| 65 74 20 74 68 65 20 73 | 63 72 65 65 6e 20 73 69 |et the s|creen si|
|00004270| 7a 65 3a 0d 09 a5 20 63 | 68 65 63 6b 20 74 68 65 |ze:... c|heck the|
|00004280| 20 51 75 69 63 6b 44 72 | 61 77 20 67 6c 6f 62 61 | QuickDr|aw globa|
|00004290| 6c 20 73 63 72 65 65 6e | 42 69 74 73 2e 62 6f 75 |l screen|Bits.bou|
|000042a0| 6e 64 73 0d 44 6f 6e d5 | 74 20 61 73 73 75 6d 65 |nds.Don.|t assume|
|000042b0| 20 74 68 65 20 73 63 72 | 65 65 6e 20 69 73 20 69 | the scr|een is i|
|000042c0| 6e 20 61 20 66 69 78 65 | 64 20 6c 6f 63 61 74 69 |n a fixe|d locati|
|000042d0| 6f 6e 0d 54 6f 20 67 65 | 74 20 74 68 65 20 73 63 |on.To ge|t the sc|
|000042e0| 72 65 65 6e 20 6c 6f 63 | 61 74 69 6f 6e 3a 0d 09 |reen loc|ation:..|
|000042f0| a5 20 63 68 65 63 6b 20 | 74 68 65 20 51 75 69 63 |. check |the Quic|
|00004300| 6b 44 72 61 77 20 67 6c | 6f 62 61 6c 20 73 63 72 |kDraw gl|obal scr|
|00004310| 65 65 6e 42 69 74 73 2e | 62 61 73 65 41 64 64 72 |eenBits.|baseAddr|
|00004320| 0d 44 6f 6e d5 74 20 61 | 73 73 75 6d 65 20 74 68 |.Don.t a|ssume th|
|00004330| 61 74 20 72 6f 77 42 79 | 74 65 73 20 69 73 20 65 |at rowBy|tes is e|
|00004340| 71 75 61 6c 20 74 6f 20 | 74 68 65 20 77 69 64 74 |qual to |the widt|
|00004350| 68 20 6f 66 20 74 68 65 | 20 73 63 72 65 65 6e 0d |h of the| screen.|
|00004360| 54 6f 20 67 65 74 20 74 | 68 65 20 6e 75 6d 62 65 |To get t|he numbe|
|00004370| 72 20 6f 66 20 62 79 74 | 65 73 20 6f 6e 20 61 20 |r of byt|es on a |
|00004380| 6c 69 6e 65 3a 0d 09 a5 | 20 63 68 65 63 6b 20 74 |line:...| check t|
|00004390| 68 65 20 51 75 69 63 6b | 44 72 61 77 20 67 6c 6f |he Quick|Draw glo|
|000043a0| 62 61 6c 20 73 63 72 65 | 65 6e 42 69 74 73 2e 72 |bal scre|enBits.r|
|000043b0| 6f 77 42 79 74 65 73 0d | 54 6f 20 67 65 74 20 74 |owBytes.|To get t|
|000043c0| 68 65 20 73 63 72 65 65 | 6e 20 77 69 64 74 68 3a |he scree|n width:|
|000043d0| 0d 09 a5 20 63 68 65 63 | 6b 20 74 68 65 20 51 75 |... chec|k the Qu|
|000043e0| 69 63 6b 44 72 61 77 20 | 67 6c 6f 62 61 6c 20 73 |ickDraw |global s|
|000043f0| 63 72 65 65 6e 42 69 74 | 73 2e 62 6f 75 6e 64 73 |creenBit|s.bounds|
|00004400| 2e 72 69 67 68 74 0d 54 | 6f 20 64 6f 20 73 63 72 |.right.T|o do scr|
|00004410| 65 65 6e 2d 73 69 7a 65 | 20 63 61 6c 63 75 6c 61 |een-size| calcula|
|00004420| 74 69 6f 6e 73 3a 0d 09 | a5 20 55 73 65 20 4c 6f |tions:..|. Use Lo|
|00004430| 6e 67 49 6e 74 73 0d 44 | 6f 6e d5 74 20 77 72 69 |ngInts.D|on.t wri|
|00004440| 74 65 20 74 6f 20 6f 72 | 20 72 65 61 64 20 66 72 |te to or| read fr|
|00004450| 6f 6d 20 6e 69 6c 20 48 | 61 6e 64 6c 65 73 20 6f |om nil H|andles o|
|00004460| 72 20 6e 69 6c 20 50 6f | 69 6e 74 65 72 73 0d 44 |r nil Po|inters.D|
|00004470| 6f 6e d5 74 20 63 72 65 | 61 74 65 20 6f 72 20 55 |on.t cre|ate or U|
|00004480| 73 65 20 46 61 6b 65 20 | 48 61 6e 64 6c 65 73 0d |se Fake |Handles.|
|00004490| 54 6f 20 61 76 6f 69 64 | 20 63 72 65 61 74 69 6e |To avoid| creatin|
|000044a0| 67 20 6f 72 20 75 73 69 | 6e 67 20 66 61 6b 65 20 |g or usi|ng fake |
|000044b0| 68 61 6e 64 6c 65 73 3a | 0d 09 a5 20 41 6c 77 61 |handles:|... Alwa|
|000044c0| 79 73 20 6c 65 74 20 74 | 68 65 20 4d 65 6d 6f 72 |ys let t|he Memor|
|000044d0| 79 20 4d 61 6e 61 67 65 | 72 20 70 65 72 66 6f 72 |y Manage|r perfor|
|000044e0| 6d 20 6f 70 65 72 61 74 | 69 6f 6e 73 20 77 69 74 |m operat|ions wit|
|000044f0| 68 20 68 61 6e 64 6c 65 | 73 0d 09 a5 20 4e 65 76 |h handle|s... Nev|
|00004500| 65 72 20 77 72 69 74 65 | 20 63 6f 64 65 20 74 68 |er write| code th|
|00004510| 61 74 20 61 73 73 69 67 | 6e 73 20 73 6f 6d 65 74 |at assig|ns somet|
|00004520| 68 69 6e 67 20 74 6f 20 | 61 20 6d 61 73 74 65 72 |hing to |a master|
|00004530| 20 70 6f 69 6e 74 65 72 | 0d 44 6f 6e d5 74 20 77 | pointer|.Don.t w|
|00004540| 72 69 74 65 20 63 6f 64 | 65 20 74 68 61 74 20 6d |rite cod|e that m|
|00004550| 6f 64 69 66 69 65 73 20 | 69 74 73 65 6c 66 0d 53 |odifies |itself.S|
|00004560| 65 6c 66 20 6d 6f 64 69 | 66 79 69 6e 67 20 63 6f |elf modi|fying co|
|00004570| 64 65 20 77 69 6c 6c 20 | 6e 6f 74 20 6c 69 76 65 |de will |not live|
|00004580| 20 61 63 72 6f 73 73 20 | 69 6e 63 61 72 6e 61 74 | across |incarnat|
|00004590| 69 6f 6e 73 20 6f 66 20 | 74 68 65 20 36 38 30 30 |ions of |the 6800|
|000045a0| 30 0d 54 68 69 6e 6b 20 | 63 61 72 65 66 75 6c 6c |0.Think |carefull|
|000045b0| 79 20 61 62 6f 75 74 20 | 63 6f 64 65 20 64 65 73 |y about |code des|
|000045c0| 69 67 6e 65 64 20 73 74 | 72 69 63 74 6c 79 20 61 |igned st|rictly a|
|000045d0| 73 20 63 6f 70 79 20 70 | 72 6f 74 65 63 74 69 6f |s copy p|rotectio|
|000045e0| 6e 0d 54 6f 20 61 76 6f | 69 64 20 63 6f 70 79 20 |n.To avo|id copy |
|000045f0| 70 72 6f 74 65 63 74 69 | 6f 6e 2d 72 65 6c 61 74 |protecti|on-relat|
|00004600| 65 64 20 69 6e 63 6f 6d | 70 61 74 69 62 69 6c 69 |ed incom|patibili|
|00004610| 74 69 65 73 3a 0d 09 a5 | 20 41 76 6f 69 64 20 63 |ties:...| Avoid c|
|00004620| 6f 70 79 20 70 72 6f 74 | 65 63 74 69 6f 6e 20 61 |opy prot|ection a|
|00004630| 6c 74 6f 67 65 74 68 65 | 72 0d 09 a5 20 52 65 6c |ltogethe|r... Rel|
|00004640| 79 20 6f 6e 20 73 63 68 | 65 6d 65 73 20 74 68 61 |y on sch|emes tha|
|00004650| 74 20 64 6f 6e d5 74 20 | 72 65 71 75 69 72 65 20 |t don.t |require |
|00004660| 73 70 65 63 69 66 69 63 | 20 68 61 72 64 77 61 72 |specific| hardwar|
|00004670| 65 0d 09 a5 20 4d 61 6b | 65 20 73 75 72 65 20 79 |e... Mak|e sure y|
|00004680| 6f 75 72 20 73 63 68 65 | 6d 65 20 64 6f 65 73 6e |our sche|me doesn|
|00004690| d5 74 20 70 65 72 66 6f | 72 6d 20 69 6c 6c 65 67 |.t perfo|rm illeg|
|000046a0| 61 6c 20 6f 70 65 72 61 | 74 69 6f 6e 73 20 0d 44 |al opera|tions .D|
|000046b0| 6f 6e d5 74 20 69 67 6e | 6f 72 65 20 65 72 72 6f |on.t ign|ore erro|
|000046c0| 72 73 0d 54 6f 20 67 65 | 74 20 76 61 6c 75 61 62 |rs.To ge|t valuab|
|000046d0| 6c 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 3a 0d |le infor|mation:.|
|000046e0| 09 a5 20 43 68 65 63 6b | 20 61 6c 6c 20 70 65 72 |.. Check| all per|
|000046f0| 74 69 6e 65 6e 74 20 63 | 61 6c 6c 73 20 66 6f 72 |tinent c|alls for|
|00004700| 20 65 72 72 6f 72 73 20 | 0d 09 a5 20 41 6c 77 61 | errors |... Alwa|
|00004710| 79 73 20 77 72 69 74 65 | 20 64 65 66 65 6e 73 69 |ys write| defensi|
|00004720| 76 65 20 63 6f 64 65 20 | 0d 44 6f 6e d5 74 20 61 |ve code |.Don.t a|
|00004730| 63 63 65 73 73 20 68 61 | 72 64 77 61 72 65 20 64 |ccess ha|rdware d|
|00004740| 69 72 65 63 74 6c 79 0d | 54 6f 20 61 76 6f 69 64 |irectly.|To avoid|
|00004750| 20 68 61 72 64 77 61 72 | 65 2d 72 65 6c 61 74 65 | hardwar|e-relate|
|00004760| 64 20 69 6e 63 6f 6d 70 | 61 74 69 62 69 6c 69 74 |d incomp|atibilit|
|00004770| 69 65 73 3a 0d 09 a5 20 | 44 6f 6e d5 74 20 72 65 |ies:... |Don.t re|
|00004780| 61 64 20 6f 72 20 77 72 | 69 74 65 20 74 68 65 20 |ad or wr|ite the |
|00004790| 68 61 72 64 77 61 72 65 | 0d 09 a5 20 49 66 20 79 |hardware|... If y|
|000047a0| 6f 75 20 63 61 6e d5 74 | 20 67 65 74 20 74 68 65 |ou can.t| get the|
|000047b0| 20 73 75 70 70 6f 72 74 | 20 66 72 6f 6d 20 74 68 | support| from th|
|000047c0| 65 20 52 4f 4d 2c 20 61 | 73 6b 20 74 68 65 20 73 |e ROM, a|sk the s|
|000047d0| 79 73 74 65 6d 20 77 68 | 65 72 65 20 74 68 65 20 |ystem wh|ere the |
|000047e0| 68 61 72 64 77 61 72 65 | 20 69 73 0d 09 a5 20 55 |hardware| is... U|
|000047f0| 73 65 20 6c 6f 77 2d 6d | 65 6d 6f 72 79 20 67 6c |se low-m|emory gl|
|00004800| 6f 62 61 6c 73 0d 44 6f | 6e d5 74 20 75 73 65 20 |obals.Do|n.t use |
|00004810| 62 69 74 73 20 74 68 61 | 74 20 61 72 65 20 72 65 |bits tha|t are re|
|00004820| 73 65 72 76 65 64 0d 54 | 6f 20 61 76 6f 69 64 20 |served.T|o avoid |
|00004830| 63 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 20 70 72 |compatib|ility pr|
|00004840| 6f 62 6c 65 6d 73 20 77 | 68 65 6e 20 62 69 74 20 |oblems w|hen bit |
|00004850| 73 74 61 74 75 73 20 63 | 68 61 6e 67 65 73 3a 0d |status c|hanges:.|
|00004860| 09 a5 20 44 6f 6e d5 74 | 20 75 73 65 20 75 6e 64 |.. Don.t| use und|
|00004870| 6f 63 75 6d 65 6e 74 65 | 64 20 73 74 75 66 66 0d |ocumente|d stuff.|
|00004880| 09 a5 20 57 68 65 6e 20 | 75 73 69 6e 67 20 6c 6f |.. When |using lo|
|00004890| 77 2d 6d 65 6d 6f 72 79 | 20 67 6c 6f 62 61 6c 73 |w-memory| globals|
|000048a0| 2c 20 63 68 65 63 6b 20 | 6f 6e 6c 79 20 77 68 61 |, check |only wha|
|000048b0| 74 20 79 6f 75 20 77 61 | 6e 74 20 74 6f 20 6b 6e |t you wa|nt to kn|
|000048c0| 6f 77 0d 53 75 6d 6d 61 | 72 79 0d 4d 69 6e 6f 72 |ow.Summa|ry.Minor|
|000048d0| 20 62 75 67 73 20 61 72 | 65 20 67 65 74 74 69 6e | bugs ar|e gettin|
|000048e0| 67 20 68 61 72 64 65 72 | 20 61 6e 64 20 68 61 72 |g harder| and har|
|000048f0| 64 65 72 20 74 6f 20 67 | 65 74 20 61 77 61 79 20 |der to g|et away |
|00004900| 77 69 74 68 3a 0d 09 a5 | 20 47 6f 6f 64 20 6c 75 |with:...| Good lu|
|00004910| 63 6b 0d 09 a5 20 57 65 | d5 6c 6c 20 68 65 6c 70 |ck... We|.ll help|
|00004920| 0d 09 a5 20 41 70 70 6c | 65 4c 69 6e 6b 3a 20 4d |... Appl|eLink: M|
|00004930| 61 63 44 54 53 2c 20 4d | 43 49 3a 20 4d 61 63 44 |acDTS, M|CI: MacD|
|00004940| 54 53 0d 09 a5 20 55 2e | 53 2e 20 4d 61 69 6c 3a |TS... U.|S. Mail:|
|00004950| 20 32 30 35 32 35 20 4d | 61 72 69 61 6e 69 20 41 | 20525 M|ariani A|
|00004960| 76 65 2e 3b 20 4d 2f 53 | 20 32 37 2d 54 3b 20 43 |ve.; M/S| 27-T; C|
|00004970| 75 70 65 72 74 69 6e 6f | 2c 20 43 41 20 39 35 30 |upertino|, CA 950|
|00004980| 31 34 0d 57 68 61 74 20 | 69 74 20 49 73 0d 54 68 |14.What |it Is.Th|
|00004990| 65 20 62 61 73 69 63 20 | 69 64 65 61 20 69 73 20 |e basic |idea is |
|000049a0| 74 6f 20 6d 61 6b 65 20 | 73 75 72 65 20 74 68 61 |to make |sure tha|
|000049b0| 74 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 73 20 |t your p|rograms |
|000049c0| 77 69 6c 6c 20 72 75 6e | 2c 20 72 65 67 61 72 64 |will run|, regard|
|000049d0| 6c 65 73 73 20 6f 66 20 | 77 68 69 63 68 20 4d 61 |less of |which Ma|
|000049e0| 63 69 6e 74 6f 73 68 20 | 74 68 65 79 20 61 72 65 |cintosh |they are|
|000049f0| 20 62 65 69 6e 67 20 72 | 75 6e 20 6f 6e 2e 20 54 | being r|un on. T|
|00004a00| 68 65 20 63 75 72 72 65 | 6e 74 20 73 79 73 74 65 |he curre|nt syste|
|00004a10| 6d 73 20 74 6f 20 62 65 | 20 63 6f 6e 63 65 72 6e |ms to be| concern|
|00004a20| 65 64 20 77 69 74 68 20 | 69 6e 63 6c 75 64 65 3a |ed with |include:|
|00004a30| 0d 09 a5 20 4d 61 63 69 | 6e 74 6f 73 68 20 31 32 |... Maci|ntosh 12|
|00004a40| 38 4b 09 a5 20 4d 61 63 | 69 6e 74 6f 73 68 20 35 |8K.. Mac|intosh 5|
|00004a50| 31 32 4b 65 0d 09 a5 20 | 4d 61 63 69 6e 74 6f 73 |12Ke... |Macintos|
|00004a60| 68 20 35 31 32 4b 09 a5 | 20 4d 61 63 69 6e 74 6f |h 512K..| Macinto|
|00004a70| 73 68 20 50 6c 75 73 0d | 09 a5 20 4d 61 63 69 6e |sh Plus.|.. Macin|
|00004a80| 74 6f 73 68 20 58 4c 09 | a5 20 4d 61 63 69 6e 74 |tosh XL.|. Macint|
|00004a90| 6f 73 68 20 53 45 0d 09 | a5 20 4d 61 63 69 6e 74 |osh SE..|. Macint|
|00004aa0| 6f 73 68 20 49 49 0d 49 | 66 20 79 6f 75 20 70 65 |osh II.I|f you pe|
|00004ab0| 72 66 6f 72 6d 20 6f 70 | 65 72 61 74 69 6f 6e 73 |rform op|erations|
|00004ac0| 20 69 6e 20 61 20 67 65 | 6e 65 72 69 63 20 66 61 | in a ge|neric fa|
|00004ad0| 73 68 69 6f 6e 2c 20 74 | 68 65 72 65 20 69 73 20 |shion, t|here is |
|00004ae0| 72 61 72 65 6c 79 20 61 | 6e 79 20 72 65 61 73 6f |rarely a|ny reaso|
|00004af0| 6e 20 74 6f 20 6b 6e 6f | 77 20 77 68 61 74 20 6d |n to kno|w what m|
|00004b00| 61 63 68 69 6e 65 20 69 | 73 20 72 75 6e 6e 69 6e |achine i|s runnin|
|00004b10| 67 2e 20 54 68 69 73 20 | 6d 65 61 6e 73 20 74 68 |g. This |means th|
|00004b20| 61 74 20 79 6f 75 20 73 | 68 6f 75 6c 64 20 61 76 |at you s|hould av|
|00004b30| 6f 69 64 20 77 72 69 74 | 69 6e 67 20 63 6f 64 65 |oid writ|ing code|
|00004b40| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 77 68 | to dete|rmine wh|
|00004b50| 69 63 68 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 74 |ich vers|ion of t|
|00004b60| 68 65 20 6d 61 63 68 69 | 6e 65 20 79 6f 75 20 61 |he machi|ne you a|
|00004b70| 72 65 20 72 75 6e 6e 69 | 6e 67 20 6f 6e 2c 20 75 |re runni|ng on, u|
|00004b80| 6e 6c 65 73 73 20 69 74 | 20 69 73 20 61 62 73 6f |nless it| is abso|
|00004b90| 6c 75 74 65 6c 79 20 6e | 65 63 65 73 73 61 72 79 |lutely n|ecessary|
|00004ba0| 2e 0d 46 6f 72 20 74 68 | 65 20 70 75 72 70 6f 73 |..For th|e purpos|
|00004bb0| 65 73 20 6f 66 20 74 68 | 69 73 20 64 69 73 63 75 |es of th|is discu|
|00004bc0| 73 73 69 6f 6e 2c 20 74 | 68 65 20 74 65 72 6d 20 |ssion, t|he term |
|00004bd0| d2 70 72 6f 67 72 61 6d | 73 d3 20 77 69 6c 6c 20 |.program|s. will |
|00004be0| 62 65 20 75 73 65 64 20 | 74 6f 20 64 65 73 63 72 |be used |to descr|
|00004bf0| 69 62 65 20 61 6e 79 20 | 63 6f 64 65 20 74 68 61 |ibe any |code tha|
|00004c00| 74 20 72 75 6e 73 20 6f | 6e 20 61 20 4d 61 63 69 |t runs o|n a Maci|
|00004c10| 6e 74 6f 73 68 2e 20 54 | 68 69 73 20 69 6e 63 6c |ntosh. T|his incl|
|00004c20| 75 64 65 73 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |udes app|lication|
|00004c30| 73 2c 20 49 4e 49 54 73 | 2c 20 46 4b 45 59 73 2c |s, INITs|, FKEYs,|
|00004c40| 20 44 65 73 6b 20 41 63 | 63 65 73 73 6f 72 69 65 | Desk Ac|cessorie|
|00004c50| 73 20 61 6e 64 20 44 72 | 69 76 65 72 73 2e 0d 57 |s and Dr|ivers..W|
|00004c60| 68 61 74 20 74 68 65 20 | d2 52 75 6c 65 73 d3 20 |hat the |.Rules. |
|00004c70| 6d 65 61 6e 0d 43 6f 6d | 70 61 74 69 62 69 6c 69 |mean.Com|patibili|
|00004c80| 74 79 20 61 63 72 6f 73 | 73 20 61 6c 6c 20 4d 61 |ty acros|s all Ma|
|00004c90| 63 69 6e 74 6f 73 68 20 | 63 6f 6d 70 75 74 65 72 |cintosh |computer|
|00004ca0| 73 20 28 77 68 69 63 68 | 20 6d 61 79 20 73 6f 75 |s (which| may sou|
|00004cb0| 6e 64 20 6c 69 6b 65 20 | 69 74 20 69 6e 76 6f 6c |nd like |it invol|
|00004cc0| 76 65 73 20 6d 6f 72 65 | 20 77 6f 72 6b 20 66 6f |ves more| work fo|
|00004cd0| 72 20 79 6f 75 29 20 6d | 61 79 20 61 63 74 75 61 |r you) m|ay actua|
|00004ce0| 6c 6c 79 20 6d 65 61 6e | 20 74 68 61 74 20 79 6f |lly mean| that yo|
|00004cf0| 75 20 68 61 76 65 20 6c | 65 73 73 20 77 6f 72 6b |u have l|ess work|
|00004d00| 20 74 6f 20 64 6f 2c 20 | 73 69 6e 63 65 20 69 74 | to do, |since it|
|00004d10| 20 6d 61 79 20 6e 6f 74 | 20 62 65 20 6e 65 63 65 | may not| be nece|
|00004d20| 73 73 61 72 79 20 74 6f | 20 72 65 76 69 73 65 20 |ssary to| revise |
|00004d30| 79 6f 75 72 20 70 72 6f | 67 72 61 6d 20 65 61 63 |your pro|gram eac|
|00004d40| 68 20 74 69 6d 65 20 41 | 70 70 6c 65 20 62 72 69 |h time A|pple bri|
|00004d50| 6e 67 73 20 6f 75 74 20 | 61 20 6e 65 77 20 63 6f |ngs out |a new co|
|00004d60| 6d 70 75 74 65 72 20 6f | 72 20 53 79 73 74 65 6d |mputer o|r System|
|00004d70| 20 66 69 6c 65 2e 20 55 | 73 65 72 73 2c 20 61 73 | file. U|sers, as|
|00004d80| 20 61 20 67 72 6f 75 70 | 2c 20 64 6f 20 6e 6f 74 | a group|, do not|
|00004d90| 20 75 6e 64 65 72 73 74 | 61 6e 64 20 63 6f 6d 70 | underst|and comp|
|00004da0| 61 74 69 62 69 6c 69 74 | 79 20 70 72 6f 62 6c 65 |atibilit|y proble|
|00004db0| 6d 73 3b 20 61 6c 6c 20 | 74 68 65 79 20 73 65 65 |ms; all |they see|
|00004dc0| 20 69 73 20 74 68 61 74 | 20 74 68 65 20 70 72 6f | is that| the pro|
|00004dd0| 67 72 61 6d 20 64 6f 65 | 73 20 6e 6f 74 20 72 75 |gram doe|s not ru|
|00004de0| 6e 20 6f 6e 20 74 68 65 | 69 72 20 73 79 73 74 65 |n on the|ir syste|
|00004df0| 6d 2e 0d 54 68 65 20 62 | 65 6e 65 66 69 74 73 20 |m..The b|enefits |
|00004e00| 6f 66 20 62 65 69 6e 67 | 20 63 6f 6d 70 61 74 69 |of being| compati|
|00004e10| 62 6c 65 20 61 72 65 20 | 6d 61 6e 79 2d 66 6f 6c |ble are |many-fol|
|00004e20| 64 3a 20 79 6f 75 72 20 | 63 75 73 74 6f 6d 65 72 |d: your |customer|
|00004e30| 73 2f 75 73 65 72 73 20 | 73 74 61 79 20 68 61 70 |s/users |stay hap|
|00004e40| 70 79 2c 20 79 6f 75 20 | 68 61 76 65 20 6c 65 73 |py, you |have les|
|00004e50| 73 20 70 72 6f 67 72 61 | 6d 6d 69 6e 67 20 74 6f |s progra|mming to|
|00004e60| 20 64 6f 2c 20 79 6f 75 | 20 63 61 6e 20 64 65 76 | do, you| can dev|
|00004e70| 6f 74 65 20 79 6f 75 72 | 20 74 69 6d 65 20 74 6f |ote your| time to|
|00004e80| 20 6d 6f 72 65 20 76 61 | 6c 75 61 62 6c 65 20 67 | more va|luable g|
|00004e90| 6f 61 6c 73 2c 20 74 68 | 65 72 65 20 61 72 65 20 |oals, th|ere are |
|00004ea0| 66 65 77 65 72 20 76 65 | 72 73 69 6f 6e 73 20 74 |fewer ve|rsions t|
|00004eb0| 6f 20 64 65 61 6c 20 77 | 69 74 68 2c 20 79 6f 75 |o deal w|ith, you|
|00004ec0| 72 20 63 6f 64 65 20 77 | 69 6c 6c 20 70 72 6f 62 |r code w|ill prob|
|00004ed0| 61 62 6c 79 20 62 65 20 | 6d 6f 72 65 20 65 66 66 |ably be |more eff|
|00004ee0| 69 63 69 65 6e 74 2c 20 | 79 6f 75 72 20 75 73 65 |icient, |your use|
|00004ef0| 72 73 20 77 69 6c 6c 20 | 6e 6f 74 20 63 75 72 73 |rs will |not curs|
|00004f00| 65 20 79 6f 75 20 75 6e | 64 65 72 20 74 68 65 69 |e you un|der thei|
|00004f10| 72 20 62 72 65 61 74 68 | 2c 20 61 6e 64 20 79 6f |r breath|, and yo|
|00004f20| 75 72 20 6f 75 74 6c 6f | 6f 6b 20 6f 6e 20 6c 69 |ur outlo|ok on li|
|00004f30| 66 65 20 77 69 6c 6c 20 | 62 65 20 6d 75 63 68 20 |fe will |be much |
|00004f40| 6d 65 72 72 69 65 72 2e | 0d 4e 6f 77 20 74 68 61 |merrier.|.Now tha|
|00004f50| 74 20 77 65 20 6b 6e 6f | 77 20 77 68 61 74 20 62 |t we kno|w what b|
|00004f60| 65 69 6e 67 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |eing com|patible |
|00004f70| 69 73 20 61 6c 6c 20 61 | 62 6f 75 74 2c 20 72 65 |is all a|bout, re|
|00004f80| 63 6f 67 6e 69 7a 65 20 | 74 68 61 74 20 6e 6f 62 |cognize |that nob|
|00004f90| 6f 64 79 20 69 73 20 72 | 65 71 75 69 72 69 6e 67 |ody is r|equiring|
|00004fa0| 20 79 6f 75 20 74 6f 20 | 62 65 20 63 6f 6d 70 61 | you to |be compa|
|00004fb0| 74 69 62 6c 65 20 77 69 | 74 68 20 61 6e 79 74 68 |tible wi|th anyth|
|00004fc0| 69 6e 67 2e 20 41 70 70 | 6c 65 20 64 6f 65 73 20 |ing. App|le does |
|00004fd0| 6e 6f 74 20 65 6d 70 6c | 6f 79 20 72 6f 76 69 6e |not empl|oy rovin|
|00004fe0| 67 20 67 61 6e 67 73 20 | 6f 66 20 74 68 6f 75 67 |g gangs |of thoug|
|00004ff0| 68 74 20 70 6f 6c 69 63 | 65 20 74 6f 20 62 65 20 |ht polic|e to be |
|00005000| 73 75 72 65 20 74 68 61 | 74 20 64 65 76 65 6c 6f |sure tha|t develo|
|00005010| 70 65 72 73 20 61 72 65 | 20 66 6f 6c 6c 6f 77 69 |pers are| followi|
|00005020| 6e 67 20 74 68 65 20 72 | 65 63 6f 6d 6d 65 6e 64 |ng the r|ecommend|
|00005030| 65 64 20 67 75 69 64 65 | 6c 69 6e 65 73 2e 20 46 |ed guide|lines. F|
|00005040| 75 72 74 68 65 72 6d 6f | 72 65 2c 20 77 68 65 6e |urthermo|re, when|
|00005050| 20 74 68 65 20 67 75 69 | 64 65 6c 69 6e 65 73 20 | the gui|delines |
|00005060| 63 6f 6d 70 72 69 73 65 | 20 31 32 30 30 20 70 61 |comprise| 1200 pa|
|00005070| 67 65 73 20 6f 66 20 74 | 75 72 67 69 64 20 70 72 |ges of t|urgid pr|
|00005080| 6f 73 65 20 28 49 6e 73 | 69 64 65 20 4d 61 63 69 |ose (Ins|ide Maci|
|00005090| 6e 74 6f 73 68 29 2c 20 | 79 6f 75 20 63 61 6e 20 |ntosh), |you can |
|000050a0| 62 65 20 65 78 70 65 63 | 74 65 64 20 74 6f 20 6d |be expec|ted to m|
|000050b0| 69 73 73 20 6f 6e 65 20 | 6f 72 20 74 77 6f 20 6f |iss one |or two o|
|000050c0| 66 20 74 68 65 20 d2 72 | 75 6c 65 73 2e d3 20 49 |f the .r|ules.. I|
|000050d0| 74 20 69 73 20 6e 6f 20 | 73 69 6e 20 74 6f 20 62 |t is no |sin to b|
|000050e0| 65 20 69 6e 63 6f 6d 70 | 61 74 69 62 6c 65 2c 20 |e incomp|atible, |
|000050f0| 6e 6f 72 20 69 73 20 69 | 74 20 61 20 70 75 6e 69 |nor is i|t a puni|
|00005100| 73 68 61 62 6c 65 20 6f | 66 66 65 6e 73 65 2e 20 |shable o|ffense. |
|00005110| 49 66 20 69 74 20 77 65 | 72 65 2c 20 74 68 65 72 |If it we|re, ther|
|00005120| 65 20 77 6f 75 6c 64 20 | 62 65 20 6e 6f 20 4d 61 |e would |be no Ma|
|00005130| 63 69 6e 74 6f 73 68 20 | 70 72 6f 67 72 61 6d 73 |cintosh |programs|
|00005140| 2c 20 73 69 6e 63 65 20 | 76 69 72 74 75 61 6c 6c |, since |virtuall|
|00005150| 79 20 61 6c 6c 20 64 65 | 76 65 6c 6f 70 65 72 73 |y all de|velopers|
|00005160| 20 77 6f 75 6c 64 20 62 | 65 20 69 6e 63 61 72 63 | would b|e incarc|
|00005170| 65 72 61 74 65 64 2e 20 | 57 68 61 74 20 69 74 20 |erated. |What it |
|00005180| 64 6f 65 73 20 6d 65 61 | 6e 2c 20 68 6f 77 65 76 |does mea|n, howev|
|00005190| 65 72 2c 20 69 73 20 74 | 68 61 74 20 79 6f 75 72 |er, is t|hat your|
|000051a0| 20 70 72 6f 67 72 61 6d | 20 77 69 6c 6c 20 62 65 | program| will be|
|000051b0| 20 75 6e 66 61 76 6f 72 | 61 62 6c 79 20 76 69 65 | unfavor|ably vie|
|000051c0| 77 65 64 20 75 6e 74 69 | 6c 20 69 74 20 73 74 65 |wed unti|l it ste|
|000051d0| 70 73 20 69 6e 20 6c 69 | 6e 65 20 77 69 74 68 20 |ps in li|ne with |
|000051e0| 74 68 65 20 63 75 72 72 | 65 6e 74 20 73 79 73 74 |the curr|ent syst|
|000051f0| 65 6d 20 28 77 68 69 63 | 68 20 69 73 20 61 20 6d |em (whic|h is a m|
|00005200| 6f 76 69 6e 67 20 74 61 | 72 67 65 74 29 2e 20 49 |oving ta|rget). I|
|00005210| 66 20 61 20 70 72 6f 67 | 72 61 6d 20 62 65 63 6f |f a prog|ram beco|
|00005220| 6d 65 73 20 69 6e 63 6f | 6d 70 61 74 69 62 6c 65 |mes inco|mpatible|
|00005230| 20 77 69 74 68 20 61 20 | 6e 65 77 20 4d 61 63 69 | with a |new Maci|
|00005240| 6e 74 6f 73 68 2c 20 69 | 74 20 75 73 75 61 6c 6c |ntosh, i|t usuall|
|00005250| 79 20 72 65 71 75 69 72 | 65 73 20 72 65 74 68 69 |y requir|es rethi|
|00005260| 6e 6b 69 6e 67 20 74 68 | 65 20 6f 66 66 65 6e 64 |nking th|e offend|
|00005270| 69 6e 67 20 63 6f 64 65 | 2c 20 61 6e 64 20 72 65 |ing code|, and re|
|00005280| 6c 65 61 73 69 6e 67 20 | 61 20 6e 65 77 20 76 65 |leasing |a new ve|
|00005290| 72 73 69 6f 6e 2e 20 59 | 6f 75 20 6d 61 79 20 72 |rsion. Y|ou may r|
|000052a0| 65 61 64 20 73 6f 6d 65 | 74 68 69 6e 67 20 6c 69 |ead some|thing li|
|000052b0| 6b 65 20 d2 49 66 20 74 | 68 65 20 64 65 76 65 6c |ke .If t|he devel|
|000052c0| 6f 70 65 72 73 20 66 6f | 6c 6c 6f 77 65 64 20 41 |opers fo|llowed A|
|000052d0| 70 70 6c 65 20 67 75 69 | 64 65 6c 69 6e 65 73 2c |pple gui|delines,|
|000052e0| 20 74 68 65 79 20 77 6f | 75 6c 64 20 62 65 20 63 | they wo|uld be c|
|000052f0| 6f 6d 70 61 74 69 62 6c | 65 20 77 69 74 68 20 74 |ompatibl|e with t|
|00005300| 68 65 20 74 72 61 6e 73 | 76 65 72 73 65 2d 68 69 |he trans|verse-hi|
|00005310| 6e 67 65 64 20 64 69 61 | 74 6f 6d 69 63 20 71 75 |nged dia|tomic qu|
|00005320| 61 72 6b 20 72 65 61 6c | 69 67 6e 6d 65 6e 74 20 |ark real|ignment |
|00005330| 73 79 73 74 65 6d 2e d3 | 20 54 68 69 73 20 6d 65 |system..| This me|
|00005340| 61 6e 73 20 74 68 61 74 | 20 69 66 20 79 6f 75 20 |ans that| if you |
|00005350| 6d 61 64 65 20 61 6e 79 | 20 6d 69 73 74 61 6b 65 |made any| mistake|
|00005360| 73 20 28 79 6f 75 20 72 | 65 61 64 20 61 6c 6c 20 |s (you r|ead all |
|00005370| 31 32 30 30 20 70 61 67 | 65 73 20 63 61 72 65 66 |1200 pag|es caref|
|00005380| 75 6c 6c 79 2c 20 72 69 | 67 68 74 3f 29 2c 20 79 |ully, ri|ght?), y|
|00005390| 6f 75 20 77 69 6c 6c 20 | 6e 6f 74 20 62 65 20 63 |ou will |not be c|
|000053a0| 6f 6d 70 61 74 69 62 6c | 65 2e 20 49 74 20 69 73 |ompatibl|e. It is|
|000053b0| 20 65 78 74 72 65 6d 65 | 6c 79 20 64 69 66 66 69 | extreme|ly diffi|
|000053c0| 63 75 6c 74 20 74 6f 20 | 72 65 6d 61 69 6e 20 63 |cult to |remain c|
|000053d0| 6f 6d 70 6c 65 74 65 6c | 79 20 63 6f 6d 70 61 74 |ompletel|y compat|
|000053e0| 69 62 6c 65 2c 20 70 61 | 72 74 69 63 75 6c 61 72 |ible, pa|rticular|
|000053f0| 6c 79 20 69 6e 20 61 20 | 73 79 73 74 65 6d 20 61 |ly in a |system a|
|00005400| 73 20 63 6f 6d 70 6c 65 | 78 20 61 73 20 74 68 65 |s comple|x as the|
|00005410| 20 4d 61 63 69 6e 74 6f | 73 68 2e 20 54 68 65 20 | Macinto|sh. The |
|00005420| 72 75 6c 65 73 20 68 61 | 76 65 6e d5 74 20 63 68 |rules ha|ven.t ch|
|00005430| 61 6e 67 65 64 2c 20 62 | 75 74 20 77 68 61 74 20 |anged, b|ut what |
|00005440| 79 6f 75 20 63 61 6e 20 | 67 65 74 20 61 77 61 79 |you can |get away|
|00005450| 20 77 69 74 68 20 68 61 | 73 2e 20 54 68 65 72 65 | with ha|s. There|
|00005460| 20 61 72 65 2c 20 68 6f | 77 65 76 65 72 2c 20 61 | are, ho|wever, a|
|00005470| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 68 69 6e 67 | number |of thing|
|00005480| 73 20 74 68 61 74 20 79 | 6f 75 20 63 61 6e 20 64 |s that y|ou can d|
|00005490| 6f 20 74 6f 20 69 6d 70 | 72 6f 76 65 20 79 6f 75 |o to imp|rove you|
|000054a0| 72 20 6f 64 64 73 d1 73 | 6f 6d 65 20 6f 66 20 77 |r odds.s|ome of w|
|000054b0| 68 69 63 68 20 77 69 6c | 6c 20 62 65 20 65 78 70 |hich wil|l be exp|
|000054c0| 6c 61 69 6e 65 64 20 68 | 65 72 65 2e 0d 49 74 d5 |lained h|ere..It.|
|000054d0| 73 20 79 6f 75 72 20 63 | 68 6f 69 63 65 0d 49 74 |s your c|hoice.It|
|000054e0| 20 69 73 20 73 74 69 6c | 6c 20 79 6f 75 72 20 63 | is stil|l your c|
|000054f0| 68 6f 69 63 65 20 77 68 | 65 74 68 65 72 20 79 6f |hoice wh|ether yo|
|00005500| 75 20 77 69 6c 6c 20 62 | 65 20 63 6f 6e 63 65 72 |u will b|e concer|
|00005510| 6e 65 64 20 77 69 74 68 | 20 63 6f 6d 70 61 74 69 |ned with| compati|
|00005520| 62 69 6c 69 74 79 20 6f | 72 20 6e 6f 74 2e 20 41 |bility o|r not. A|
|00005530| 70 70 6c 65 20 77 69 6c | 6c 20 6e 6f 74 20 70 75 |pple wil|l not pu|
|00005540| 74 20 6f 75 74 20 61 20 | 77 61 72 72 61 6e 74 20 |t out a |warrant |
|00005550| 66 6f 72 20 79 6f 75 72 | 20 61 72 72 65 73 74 2e |for your| arrest.|
|00005560| 20 48 6f 77 65 76 65 72 | 2c 20 69 66 20 79 6f 75 | However|, if you|
|00005570| 20 61 72 65 20 64 6f 69 | 6e 67 20 74 68 69 6e 67 | are doi|ng thing|
|00005580| 73 20 74 68 61 74 20 61 | 72 65 20 73 70 65 63 69 |s that a|re speci|
|00005590| 66 69 63 61 6c 6c 79 20 | 69 6c 6c 65 67 61 6c 2c |fically |illegal,|
|000055a0| 20 41 70 70 6c 65 20 77 | 69 6c 6c 20 61 6c 73 6f | Apple w|ill also|
|000055b0| 20 6e 6f 74 20 77 6f 72 | 72 79 20 61 62 6f 75 74 | not wor|ry about|
|000055c0| 20 d2 62 72 65 61 6b 69 | 6e 67 d3 20 79 6f 75 72 | .breaki|ng. your|
|000055d0| 20 70 72 6f 67 72 61 6d | 2e 0d 42 61 64 20 54 68 | program|..Bad Th|
|000055e0| 69 6e 67 73 0d 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |ings.The| followi|
|000055f0| 6e 67 20 6c 69 73 74 20 | 69 73 20 6e 6f 74 20 69 |ng list |is not i|
|00005600| 6e 74 65 6e 64 65 64 20 | 74 6f 20 62 65 20 63 6f |ntended |to be co|
|00005610| 6d 70 72 65 68 65 6e 73 | 69 76 65 2c 20 62 75 74 |mprehens|ive, but|
|00005620| 20 74 68 65 73 65 20 61 | 72 65 20 74 68 65 20 70 | these a|re the p|
|00005630| 72 69 6d 61 72 79 20 72 | 65 61 73 6f 6e 73 20 77 |rimary r|easons w|
|00005640| 68 79 20 70 72 6f 67 72 | 61 6d 73 20 62 72 65 61 |hy progr|ams brea|
|00005650| 6b 20 66 72 6f 6d 20 6f | 6e 65 20 76 65 72 73 69 |k from o|ne versi|
|00005660| 6f 6e 20 6f 66 20 74 68 | 65 20 73 79 73 74 65 6d |on of th|e system|
|00005670| 20 74 6f 20 74 68 65 20 | 6e 65 78 74 2e 20 54 68 | to the |next. Th|
|00005680| 65 73 65 20 61 72 65 20 | 74 68 65 20 63 75 72 72 |ese are |the curr|
|00005690| 65 6e 74 20 74 6f 70 20 | 74 65 6e 20 63 6f 6d 6d |ent top |ten comm|
|000056a0| 61 6e 64 6d 65 6e 74 73 | 3a 0d 49 09 54 68 6f 75 |andments|:.I.Thou|
|000056b0| 20 73 68 61 6c 74 20 6e | 6f 74 20 61 73 73 75 6d | shalt n|ot assum|
|000056c0| 65 20 74 68 65 20 73 63 | 72 65 65 6e 20 69 73 20 |e the sc|reen is |
|000056d0| 61 20 66 69 78 65 64 20 | 73 69 7a 65 2e 0d 49 49 |a fixed |size..II|
|000056e0| 09 54 68 6f 75 20 73 68 | 61 6c 74 20 6e 6f 74 20 |.Thou sh|alt not |
|000056f0| 61 73 73 75 6d 65 20 74 | 68 65 20 73 63 72 65 65 |assume t|he scree|
|00005700| 6e 20 69 73 20 61 74 20 | 61 20 66 69 78 65 64 20 |n is at |a fixed |
|00005710| 6c 6f 63 61 74 69 6f 6e | 2e 0d 49 49 49 09 54 68 |location|..III.Th|
|00005720| 6f 75 20 73 68 61 6c 74 | 20 6e 6f 74 20 61 73 73 |ou shalt| not ass|
|00005730| 75 6d 65 20 74 68 61 74 | 20 72 6f 77 42 79 74 65 |ume that| rowByte|
|00005740| 73 20 69 73 20 65 71 75 | 61 6c 20 74 6f 20 74 68 |s is equ|al to th|
|00005750| 65 20 77 69 64 74 68 20 | 6f 66 20 74 68 65 20 73 |e width |of the s|
|00005760| 63 72 65 65 6e 2e 0d 49 | 56 09 54 68 6f 75 20 73 |creen..I|V.Thou s|
|00005770| 68 61 6c 74 20 6e 6f 74 | 20 75 73 65 20 6e 69 6c |halt not| use nil|
|00005780| 20 68 61 6e 64 6c 65 73 | 20 6f 72 20 6e 69 6c 20 | handles| or nil |
|00005790| 70 6f 69 6e 74 65 72 73 | 2e 0d 56 09 54 68 6f 75 |pointers|..V.Thou|
|000057a0| 20 73 68 61 6c 74 20 6e | 6f 74 20 63 72 65 61 74 | shalt n|ot creat|
|000057b0| 65 20 6f 72 20 75 73 65 | 20 66 61 6b 65 20 68 61 |e or use| fake ha|
|000057c0| 6e 64 6c 65 73 2e 0d 56 | 49 09 54 68 6f 75 20 73 |ndles..V|I.Thou s|
|000057d0| 68 61 6c 74 20 6e 6f 74 | 20 77 72 69 74 65 20 63 |halt not| write c|
|000057e0| 6f 64 65 20 74 68 61 74 | 20 6d 6f 64 69 66 69 65 |ode that| modifie|
|000057f0| 73 20 69 74 73 65 6c 66 | 2e 0d 56 49 49 09 54 68 |s itself|..VII.Th|
|00005800| 6f 75 20 73 68 61 6c 74 | 20 74 68 69 6e 6b 20 74 |ou shalt| think t|
|00005810| 77 69 63 65 20 61 62 6f | 75 74 20 63 6f 64 65 20 |wice abo|ut code |
|00005820| 64 65 73 69 67 6e 65 64 | 20 73 74 72 69 63 74 6c |designed| strictl|
|00005830| 79 20 61 73 20 63 6f 70 | 79 20 70 72 6f 74 65 63 |y as cop|y protec|
|00005840| 74 69 6f 6e 2e 0d 56 49 | 49 49 09 54 68 6f 75 20 |tion..VI|II.Thou |
|00005850| 73 68 61 6c 74 20 63 68 | 65 63 6b 20 65 72 72 6f |shalt ch|eck erro|
|00005860| 72 73 20 72 65 74 75 72 | 6e 65 64 20 61 73 20 66 |rs retur|ned as f|
|00005870| 75 6e 63 74 69 6f 6e 20 | 72 65 73 75 6c 74 73 2e |unction |results.|
|00005880| 0d 49 58 09 54 68 6f 75 | 20 73 68 61 6c 74 20 6e |.IX.Thou| shalt n|
|00005890| 6f 74 20 61 63 63 65 73 | 73 20 68 61 72 64 77 61 |ot acces|s hardwa|
|000058a0| 72 65 20 64 69 72 65 63 | 74 6c 79 2e 0d 58 09 54 |re direc|tly..X.T|
|000058b0| 68 6f 75 20 73 68 61 6c | 74 20 6e 6f 74 20 75 73 |hou shal|t not us|
|000058c0| 65 20 61 6e 79 20 6f 66 | 20 74 68 65 20 62 69 74 |e any of| the bit|
|000058d0| 73 20 74 68 61 74 20 61 | 72 65 20 72 65 73 65 72 |s that a|re reser|
|000058e0| 76 65 64 20 28 75 6e 75 | 73 65 64 20 6d 65 61 6e |ved (unu|sed mean|
|000058f0| 73 20 72 65 73 65 72 76 | 65 64 29 2e 0d 54 68 69 |s reserv|ed)..Thi|
|00005900| 73 20 68 61 73 20 62 65 | 65 6e 20 64 65 74 65 72 |s has be|en deter|
|00005910| 6d 69 6e 65 64 20 66 72 | 6f 6d 20 65 78 74 65 6e |mined fr|om exten|
|00005920| 73 69 76 65 20 74 65 73 | 74 69 6e 67 20 6f 66 20 |sive tes|ting of |
|00005930| 6f 75 72 20 64 69 76 65 | 72 73 65 20 73 6f 66 74 |our dive|rse soft|
|00005940| 77 61 72 65 20 62 61 73 | 65 2e 0d 41 73 73 75 6d |ware bas|e..Assum|
|00005950| 69 6e 67 20 74 68 65 20 | 73 63 72 65 65 6e 20 69 |ing the |screen i|
|00005960| 73 20 61 20 66 69 78 65 | 64 20 73 69 7a 65 0d 44 |s a fixe|d size.D|
|00005970| 6f 20 6e 6f 74 20 61 73 | 73 75 6d 65 20 74 68 61 |o not as|sume tha|
|00005980| 74 20 74 68 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |t the Ma|cintosh |
|00005990| 73 63 72 65 65 6e 20 69 | 73 20 35 31 32 20 78 20 |screen i|s 512 x |
|000059a0| 33 34 32 20 70 69 78 65 | 6c 73 2e 20 50 72 6f 67 |342 pixe|ls. Prog|
|000059b0| 72 61 6d 73 20 74 68 61 | 74 20 64 6f 20 67 65 6e |rams tha|t do gen|
|000059c0| 65 72 61 6c 6c 79 20 68 | 61 76 65 20 70 72 6f 62 |erally h|ave prob|
|000059d0| 6c 65 6d 73 20 6f 6e 20 | 28 6f 72 20 73 70 65 63 |lems on |(or spec|
|000059e0| 69 61 6c 20 63 61 73 65 | 20 66 6f 72 29 20 74 68 |ial case| for) th|
|000059f0| 65 20 4d 61 63 69 6e 74 | 6f 73 68 20 58 4c 2c 20 |e Macint|osh XL, |
|00005a00| 77 68 69 63 68 20 68 61 | 73 20 61 20 77 69 64 65 |which ha|s a wide|
|00005a10| 72 20 73 63 72 65 65 6e | 2e 20 4d 6f 73 74 20 61 |r screen|. Most a|
|00005a20| 70 70 6c 69 63 61 74 69 | 6f 6e 73 20 68 61 76 65 |pplicati|ons have|
|00005a30| 20 74 6f 20 63 72 65 61 | 74 65 20 74 68 65 20 62 | to crea|te the b|
|00005a40| 6f 75 6e 64 69 6e 67 20 | 72 65 63 74 61 6e 67 6c |ounding |rectangl|
|00005a50| 65 20 77 68 65 72 65 20 | 61 20 77 69 6e 64 6f 77 |e where |a window|
|00005a60| 20 63 61 6e 20 62 65 20 | 64 72 61 67 67 65 64 2e | can be |dragged.|
|00005a70| 20 54 68 69 73 20 69 73 | 20 74 68 65 20 62 6f 75 | This is| the bou|
|00005a80| 6e 64 73 52 65 63 74 20 | 74 68 61 74 20 69 73 20 |ndsRect |that is |
|00005a90| 70 61 73 73 65 64 20 74 | 6f 20 74 68 65 20 63 61 |passed t|o the ca|
|00005aa0| 6c 6c 3a 0d 09 44 72 61 | 67 57 69 6e 64 6f 77 20 |ll:..Dra|gWindow |
|00005ab0| 28 6d 79 57 69 6e 64 6f | 77 50 74 72 2c 20 74 68 |(myWindo|wPtr, th|
|00005ac0| 65 45 76 65 6e 74 2e 77 | 68 65 72 65 2c 20 62 6f |eEvent.w|here, bo|
|00005ad0| 75 6e 64 73 52 65 63 74 | 29 3b 0d 53 6f 6d 65 20 |undsRect|);.Some |
|00005ae0| 69 6c 6c 2d 61 64 76 69 | 73 65 64 20 70 72 6f 67 |ill-advi|sed prog|
|00005af0| 72 61 6d 73 20 63 72 65 | 61 74 65 20 74 68 65 20 |rams cre|ate the |
|00005b00| 62 6f 75 6e 64 73 52 65 | 63 74 20 62 79 20 73 6f |boundsRe|ct by so|
|00005b10| 6d 65 74 68 69 6e 67 20 | 6c 69 6b 65 3a 0d 09 53 |mething |like:..S|
|00005b20| 65 74 52 65 63 74 20 28 | 62 6f 75 6e 64 73 52 65 |etRect (|boundsRe|
|00005b30| 63 74 2c 20 30 2c 30 2c | 33 34 32 2c 35 31 32 29 |ct, 0,0,|342,512)|
|00005b40| 3b 20 20 7b 20 6f 6f 70 | 73 2c 20 74 68 69 73 20 |; { oop|s, this |
|00005b50| 69 73 20 68 61 72 64 2d | 63 6f 64 65 64 c9 7d 0d |is hard-|coded.}.|
|00005b60| 57 68 79 20 69 74 d5 73 | 20 42 61 64 0d 54 68 69 |Why it.s| Bad.Thi|
|00005b70| 73 20 69 73 20 62 61 64 | 20 62 65 63 61 75 73 65 |s is bad| because|
|00005b80| 20 69 74 20 69 73 20 6e | 65 76 65 72 20 6e 65 63 | it is n|ever nec|
|00005b90| 65 73 73 61 72 79 20 74 | 6f 20 73 70 65 63 69 66 |essary t|o specif|
|00005ba0| 69 63 61 6c 6c 79 20 70 | 75 74 20 69 6e 20 74 68 |ically p|ut in th|
|00005bb0| 65 20 62 6f 75 6e 64 69 | 6e 67 20 72 65 63 74 61 |e boundi|ng recta|
|00005bc0| 6e 67 6c 65 20 66 6f 72 | 20 74 68 65 20 73 63 72 |ngle for| the scr|
|00005bd0| 65 65 6e 2e 20 4f 6e 20 | 61 20 4d 61 63 69 6e 74 |een. On |a Macint|
|00005be0| 6f 73 68 20 58 4c 20 66 | 6f 72 20 65 78 61 6d 70 |osh XL f|or examp|
|00005bf0| 6c 65 2c 20 74 68 65 20 | 73 63 72 65 65 6e 20 73 |le, the |screen s|
|00005c00| 69 7a 65 20 69 73 20 37 | 36 30 78 33 36 34 20 28 |ize is 7|60x364 (|
|00005c10| 61 6e 64 20 73 6f 6d 65 | 74 69 6d 65 73 20 36 30 |and some|times 60|
|00005c20| 38 78 34 33 31 20 77 69 | 74 68 20 61 6c 74 65 72 |8x431 wi|th alter|
|00005c30| 6e 61 74 65 20 68 61 72 | 64 77 61 72 65 29 2e 20 |nate har|dware). |
|00005c40| 49 66 20 61 20 70 72 6f | 67 72 61 6d 20 75 73 65 |If a pro|gram use|
|00005c50| 73 20 74 68 65 20 68 61 | 72 64 2d 63 6f 64 65 64 |s the ha|rd-coded|
|00005c60| 20 30 2c 30 2c 33 34 32 | 2c 35 31 32 20 61 73 20 | 0,0,342|,512 as |
|00005c70| 61 20 62 6f 75 6e 64 69 | 6e 67 20 72 65 63 74 61 |a boundi|ng recta|
|00005c80| 6e 67 6c 65 2c 20 65 6e | 64 20 75 73 65 72 73 20 |ngle, en|d users |
|00005c90| 77 69 6c 6c 20 6e 6f 74 | 20 62 65 20 61 62 6c 65 |will not| be able|
|00005ca0| 20 74 6f 20 6d 6f 76 65 | 20 74 68 65 69 72 20 77 | to move| their w|
|00005cb0| 69 6e 64 6f 77 73 20 70 | 61 73 74 20 74 68 65 20 |indows p|ast the |
|00005cc0| 66 69 63 74 69 74 69 6f | 75 73 20 62 6f 75 6e 64 |fictitio|us bound|
|00005cd0| 61 72 79 20 6f 66 20 35 | 31 32 2e 20 49 66 20 73 |ary of 5|12. If s|
|00005ce0| 6f 6d 65 74 68 69 6e 67 | 20 73 69 6d 69 6c 61 72 |omething| similar|
|00005cf0| 20 77 65 72 65 20 64 6f | 6e 65 20 74 6f 20 74 68 | were do|ne to th|
|00005d00| 65 20 47 72 6f 77 57 69 | 6e 64 6f 77 20 63 61 6c |e GrowWi|ndow cal|
|00005d10| 6c 2c 20 69 74 20 77 6f | 75 6c 64 20 6d 61 6b 65 |l, it wo|uld make|
|00005d20| 20 69 74 20 69 6d 70 6f | 73 73 69 62 6c 65 20 66 | it impo|ssible f|
|00005d30| 6f 72 20 75 73 65 72 73 | 20 74 6f 20 67 72 6f 77 |or users| to grow|
|00005d40| 20 74 68 65 69 72 20 77 | 69 6e 64 6f 77 20 74 6f | their w|indow to|
|00005d50| 20 66 69 6c 6c 20 74 68 | 65 20 65 6e 74 69 72 65 | fill th|e entire|
|00005d60| 20 73 63 72 65 65 6e 2e | 20 28 41 6c 77 61 79 73 | screen.| (Always|
|00005d70| 20 61 20 73 61 64 64 65 | 6e 69 6e 67 20 77 61 73 | a sadde|ning was|
|00005d80| 74 65 20 6f 66 20 76 61 | 6c 75 61 62 6c 65 20 73 |te of va|luable s|
|00005d90| 63 72 65 65 6e 20 72 65 | 61 6c 2d 65 73 74 61 74 |creen re|al-estat|
|00005da0| 65 2e 29 0d 41 73 73 75 | 6d 69 6e 67 20 73 63 72 |e.).Assu|ming scr|
|00005db0| 65 65 6e 20 73 69 7a 65 | 20 6d 61 6b 65 73 20 69 |een size| makes i|
|00005dc0| 74 20 6d 6f 72 65 20 64 | 69 66 66 69 63 75 6c 74 |t more d|ifficult|
|00005dd0| 20 74 6f 20 75 73 65 20 | 74 68 65 20 70 72 6f 67 | to use |the prog|
|00005de0| 72 61 6d 20 6f 6e 20 4d | 61 63 69 6e 74 6f 73 68 |ram on M|acintosh|
|00005df0| 65 73 20 77 69 74 68 20 | 62 69 67 20 73 63 72 65 |es with |big scre|
|00005e00| 65 6e 73 2c 20 62 79 20 | 6d 61 6b 69 6e 67 20 69 |ens, by |making i|
|00005e10| 74 20 64 69 66 66 69 63 | 75 6c 74 20 74 6f 20 67 |t diffic|ult to g|
|00005e20| 72 6f 77 20 6f 72 20 6d | 6f 76 65 20 77 69 6e 64 |row or m|ove wind|
|00005e30| 6f 77 73 2c 20 6f 72 20 | 62 79 20 64 72 61 77 69 |ows, or |by drawi|
|00005e40| 6e 67 20 69 6e 20 73 74 | 72 61 6e 67 65 20 70 6c |ng in st|range pl|
|00005e50| 61 63 65 73 20 77 68 65 | 72 65 20 74 68 65 79 20 |aces whe|re they |
|00005e60| 73 68 6f 75 6c 64 20 6e | 6f 74 20 62 65 20 64 72 |should n|ot be dr|
|00005e70| 61 77 69 6e 67 20 28 6f | 75 74 73 69 64 65 20 6f |awing (o|utside o|
|00005e80| 66 20 77 69 6e 64 6f 77 | 73 29 2e 20 43 6f 6e 73 |f window|s). Cons|
|00005e90| 69 64 65 72 20 74 68 65 | 20 63 61 73 65 20 6f 66 |ider the| case of|
|00005ea0| 20 72 75 6e 6e 69 6e 67 | 20 6f 6e 20 61 20 4d 61 | running| on a Ma|
|00005eb0| 63 69 6e 74 6f 73 68 20 | 65 71 75 69 70 70 65 64 |cintosh |equipped|
|00005ec0| 20 77 69 74 68 20 6f 6e | 65 20 6f 66 20 74 68 65 | with on|e of the|
|00005ed0| 20 66 75 6c 6c 20 70 61 | 67 65 20 64 69 73 70 6c | full pa|ge displ|
|00005ee0| 61 79 73 2c 20 6f 72 20 | 55 6c 74 72 61 2d 4c 61 |ays, or |Ultra-La|
|00005ef0| 72 67 65 20 73 63 72 65 | 65 6e 73 2e 20 4e 6f 20 |rge scre|ens. No |
|00005f00| 6f 6e 65 20 77 68 6f 20 | 70 61 69 64 20 66 6f 72 |one who |paid for|
|00005f10| 20 61 20 62 69 67 20 73 | 63 72 65 65 6e 20 77 61 | a big s|creen wa|
|00005f20| 6e 74 73 20 74 6f 20 62 | 65 20 72 65 73 74 72 69 |nts to b|e restri|
|00005f30| 63 74 65 64 20 74 6f 20 | 75 73 69 6e 67 20 6f 6e |cted to |using on|
|00005f40| 6c 79 20 74 68 65 20 75 | 70 70 65 72 2d 6c 65 66 |ly the u|pper-lef|
|00005f50| 74 20 63 6f 72 6e 65 72 | 20 6f 66 20 69 74 2e 0d |t corner| of it..|
|00005f60| 48 6f 77 20 74 6f 20 61 | 76 6f 69 64 20 62 65 63 |How to a|void bec|
|00005f70| 6f 6d 69 6e 67 20 61 20 | 73 63 72 65 65 6e 69 6e |oming a |screenin|
|00005f80| 67 20 66 61 73 63 69 73 | 74 0d 4e 65 76 65 72 20 |g fascis|t.Never |
|00005f90| 68 61 72 64 20 63 6f 64 | 65 20 74 68 65 20 6e 75 |hard cod|e the nu|
|00005fa0| 6d 62 65 72 73 20 35 31 | 32 20 61 6e 64 20 33 34 |mbers 51|2 and 34|
|00005fb0| 32 20 66 6f 72 20 73 63 | 72 65 65 6e 20 64 69 6d |2 for sc|reen dim|
|00005fc0| 65 6e 73 69 6f 6e 73 2e | 20 59 6f 75 20 73 68 6f |ensions.| You sho|
|00005fd0| 75 6c 64 20 61 76 6f 69 | 64 20 75 73 69 6e 67 20 |uld avoi|d using |
|00005fe0| 63 6f 6e 73 74 61 6e 74 | 73 20 66 6f 72 20 73 79 |constant|s for sy|
|00005ff0| 73 74 65 6d 20 76 61 6c | 75 65 73 20 74 68 61 74 |stem val|ues that|
|00006000| 20 63 61 6e 20 63 68 61 | 6e 67 65 2e 20 50 61 72 | can cha|nge. Par|
|00006010| 61 6d 65 74 65 72 73 20 | 6c 69 6b 65 20 74 68 65 |ameters |like the|
|00006020| 73 65 20 61 72 65 20 6e | 65 61 72 6c 79 20 61 6c |se are n|early al|
|00006030| 77 61 79 73 20 61 76 61 | 69 6c 61 62 6c 65 20 69 |ways ava|ilable i|
|00006040| 6e 20 61 20 64 79 6e 61 | 6d 69 63 20 66 61 73 68 |n a dyna|mic fash|
|00006050| 69 6f 6e 2e 20 50 72 6f | 67 72 61 6d 73 20 73 68 |ion. Pro|grams sh|
|00006060| 6f 75 6c 64 20 72 65 61 | 64 20 74 68 65 20 61 70 |ould rea|d the ap|
|00006070| 70 72 6f 70 72 69 61 74 | 65 20 76 61 72 69 61 62 |propriat|e variab|
|00006080| 6c 65 73 20 77 68 69 6c | 65 20 74 68 65 20 70 72 |les whil|e the pr|
|00006090| 6f 67 72 61 6d 20 69 73 | 20 72 75 6e 6e 69 6e 67 |ogram is| running|
|000060a0| 20 28 61 74 20 72 75 6e | 2d 74 69 6d 65 2c 20 6e | (at run|-time, n|
|000060b0| 6f 74 20 61 74 20 63 6f | 6d 70 69 6c 65 20 74 69 |ot at co|mpile ti|
|000060c0| 6d 65 29 2e 0d 48 65 72 | 65 d5 73 20 68 6f 77 20 |me)..Her|e.s how |
|000060d0| 73 6d 61 72 74 20 70 72 | 6f 67 72 61 6d 73 20 67 |smart pr|ograms g|
|000060e0| 65 74 20 74 68 65 20 73 | 63 72 65 65 6e 20 64 69 |et the s|creen di|
|000060f0| 6d 65 6e 73 69 6f 6e 73 | 3a 0d 09 49 6e 69 74 47 |mensions|:..InitG|
|00006100| 72 61 66 28 40 74 68 65 | 50 6f 72 74 29 3b 20 7b |raf(@the|Port); {|
|00006110| 20 51 75 69 63 6b 44 72 | 61 77 20 67 6c 6f 62 61 | QuickDr|aw globa|
|00006120| 6c 20 76 61 72 69 61 62 | 6c 65 73 20 68 61 76 65 |l variab|les have|
|00006130| 20 74 6f 20 62 65 20 69 | 6e 69 74 69 61 6c 69 7a | to be i|nitializ|
|00006140| 65 64 2e 7d 0d 09 c9 0d | 09 62 6f 75 6e 64 73 52 |ed.}....|.boundsR|
|00006150| 65 63 74 20 3a 3d 20 73 | 63 72 65 65 6e 42 69 74 |ect := s|creenBit|
|00006160| 73 2e 62 6f 75 6e 64 73 | 3b 20 20 20 7b 20 54 68 |s.bounds|; { Th|
|00006170| 65 20 52 65 61 6c 20 77 | 61 79 20 74 6f 20 67 65 |e Real w|ay to ge|
|00006180| 74 20 73 63 72 65 65 6e | 20 73 69 7a 65 20 7d 0d |t screen| size }.|
|00006190| 09 09 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.. | |
|000061a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000061b0| 20 20 20 20 20 20 20 20 | 20 20 09 09 20 20 7b 20 | | .. { |
|000061c0| 55 73 65 20 51 75 69 63 | 6b 44 72 61 77 20 67 6c |Use Quic|kDraw gl|
|000061d0| 6f 62 61 6c 20 76 61 72 | 69 61 62 6c 65 2e 20 7d |obal var|iable. }|
|000061e0| 0d 54 68 69 73 20 69 73 | 20 73 6d 61 72 74 2c 20 |.This is| smart, |
|000061f0| 62 65 63 61 75 73 65 20 | 74 68 65 20 70 72 6f 67 |because |the prog|
|00006200| 72 61 6d 20 6e 65 76 65 | 72 20 68 61 73 20 74 6f |ram neve|r has to|
|00006210| 20 6b 6e 6f 77 20 73 70 | 65 63 69 66 69 63 61 6c | know sp|ecifical|
|00006220| 6c 79 20 77 68 61 74 20 | 74 68 65 20 6e 75 6d 62 |ly what |the numb|
|00006230| 65 72 73 20 61 72 65 2e | 20 41 6c 6c 20 72 65 66 |ers are.| All ref|
|00006240| 65 72 65 6e 63 65 73 20 | 74 6f 20 72 65 63 74 61 |erences |to recta|
|00006250| 6e 67 6c 65 73 20 74 68 | 61 74 20 6e 65 65 64 20 |ngles th|at need |
|00006260| 74 6f 20 62 65 20 72 65 | 6c 61 74 65 64 20 74 6f |to be re|lated to|
|00006270| 20 74 68 65 20 73 63 72 | 65 65 6e 20 28 6c 69 6b | the scr|een (lik|
|00006280| 65 20 74 68 65 20 64 72 | 61 67 20 61 6e 64 20 67 |e the dr|ag and g|
|00006290| 72 6f 77 20 61 72 65 61 | 73 20 6f 66 20 77 69 6e |row area|s of win|
|000062a0| 64 6f 77 73 29 20 73 68 | 6f 75 6c 64 20 75 73 65 |dows) sh|ould use|
|000062b0| 20 73 63 72 65 65 6e 42 | 69 74 73 2e 62 6f 75 6e | screenB|its.boun|
|000062c0| 64 73 20 74 6f 20 61 76 | 6f 69 64 20 77 6f 72 72 |ds to av|oid worr|
|000062d0| 79 69 6e 67 20 61 62 6f | 75 74 20 74 68 65 20 73 |ying abo|ut the s|
|000062e0| 63 72 65 65 6e 20 73 69 | 7a 65 2e 0d 4e 6f 74 65 |creen si|ze..Note|
|000062f0| 20 74 68 61 74 20 74 68 | 69 73 20 64 6f 65 73 20 | that th|is does |
|00006300| 6e 6f 74 20 64 6f 20 61 | 6e 79 74 68 69 6e 67 20 |not do a|nything |
|00006310| 72 65 6d 6f 74 65 6c 79 | 20 6c 69 6b 65 20 61 73 |remotely| like as|
|00006320| 73 75 6d 65 20 74 68 61 | 74 20 d2 69 66 20 74 68 |sume tha|t .if th|
|00006330| 65 20 63 6f 6d 70 75 74 | 65 72 20 69 73 20 6e 6f |e comput|er is no|
|00006340| 74 20 61 20 73 74 61 6e | 64 61 72 64 20 4d 61 63 |t a stan|dard Mac|
|00006350| 69 6e 74 6f 73 68 2c 20 | 74 68 65 6e 20 69 74 20 |intosh, |then it |
|00006360| 6d 75 73 74 20 62 65 20 | 61 6e 20 58 4c 2e d3 20 |must be |an XL.. |
|00006370| 53 70 65 63 69 61 6c 20 | 63 61 73 69 6e 67 20 66 |Special |casing f|
|00006380| 6f 72 20 74 68 65 20 76 | 61 72 69 6f 75 73 20 76 |or the v|arious v|
|00006390| 65 72 73 69 6f 6e 73 20 | 6f 66 20 74 68 65 20 4d |ersions |of the M|
|000063a0| 61 63 69 6e 74 6f 73 68 | 20 68 61 73 20 61 6c 77 |acintosh| has alw|
|000063b0| 61 79 73 20 62 65 65 6e | 20 73 75 73 70 69 63 69 |ays been| suspici|
|000063c0| 6f 75 73 20 61 74 20 62 | 65 73 74 3b 20 69 74 20 |ous at b|est; it |
|000063d0| 69 73 20 6e 6f 77 20 67 | 72 6f 75 6e 64 73 20 66 |is now g|rounds f|
|000063e0| 6f 72 20 62 72 65 61 6b | 69 6e 67 2e 20 28 41 74 |or break|ing. (At|
|000063f0| 20 6c 65 61 73 74 20 77 | 69 74 68 20 72 65 73 70 | least w|ith resp|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.